[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / g++.dg / goacc / deviceptr-1.C
blobd6d0483129b3955eb303e17e9e3ee49dc2bab995
1 // { dg-do compile }
3 template <typename P>
4 void
5 func1 (P p)
7 #pragma acc data deviceptr (p)// { dg-bogus "is not a pointer" }
8   ;
11 void
12 func2 (int *p)
14   func1 (p);
17 template <typename P>
18 void
19 func3 (P p)
21 #pragma acc data deviceptr (p)// { dg-error "is not a pointer" }
22   ;
24 void
25 func4 (int p)
27   func3 (p);
30 template <int N>
31 void
32 func5 (int *p, int q)
34 #pragma acc data deviceptr (p)// { dg-bogus "is not a pointer" }
35   ;
36 #pragma acc data deviceptr (q)// { dg-error "is not a pointer" }
37   ;