gcc/libgomp/testsuite/libgomp.oacc-c++/routine-1-template-auto.C
Thomas Schwinge bbc79c0e9e C++ OpenACC routine directive testing: templated, and "auto", trailing return type syntax
libgomp/
	* testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
	* testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
	* testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
	Likewise.
	* testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
	* testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.

From-SVN: r239126
2016-08-04 15:35:10 +02:00

9 lines
227 B
C

// Templated routine with "auto" return type.
// { dg-additional-options "-fno-exceptions" }
#define TEMPLATE template<typename TYPE>
#define RETURN_1 auto
#define RETURN_2
#include "../libgomp.oacc-c-c++-common/routine-1.c"