Remove xfail for hppa*-*-hpux* from stdatomic-flag.c and stdatomic-flag-2.c
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c++ / pr71959-aux.cc
blob10a6eeb644c45182e217b36c394d6486211dfb73
1 // { dg-do compile }
3 #define STR1(X) #X
4 #define STR2(X) STR1(X)
5 #define LABEL(X) STR2(__USER_LABEL_PREFIX__) X
7 struct Iter
9 int *cursor;
11 void ctor (int *cursor_) asm (LABEL ("_ZN4IterC1EPi"));
12 int *point () const asm (LABEL ("_ZNK4Iter5pointEv"));
15 #pragma acc routine
16 void Iter::ctor (int *cursor_)
18 cursor = cursor_;
21 #pragma acc routine
22 int *Iter::point () const
24 return cursor;
27 void apply (int (*fn)(), Iter out) asm (LABEL ("_ZN5Apply5applyEPFivE4Iter"));
29 #pragma acc routine
30 void apply (int (*fn)(), struct Iter out)
31 { *out.point() = fn (); }
33 extern "C" void __gxx_personality_v0 ()