Match: Support form 1 for scalar signed integer SAT_SUB
[official-gcc.git] / gcc / testsuite / g++.dg / gomp / predetermined-1.C
blob74cd74febdfb28e0e6dc5035e632d5fd95d7173f
1 // { dg-do compile }
2 // { dg-options "-fopenmp" }
4 struct A { int i; A (); ~A (); };
5 struct B { int i; };
6 struct C { int i; mutable int j; C (); ~C (); };
8 template <typename T> void bar (const T *);
10 const A a;
11 const C c;
13 const A foo (const A d, const C e)
15   const A f;
16   const B b = { 4 };
17   A g;
18   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
19     bar (&a);                           // { dg-error "not specified" }
20   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
21     bar (&b);                           // { dg-error "not specified" }
22   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
23     bar (&c);                           // { dg-error "not specified" }
24   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
25     bar (&d);                           // { dg-error "not specified" }
26   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
27     bar (&e);                           // { dg-error "not specified" }
28   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
29     bar (&f);                           // { dg-error "not specified" }
30   #pragma omp parallel default (none)   // { dg-message "note: enclosing 'parallel'" }
31     bar (&g);                           // { dg-error "not specified" }
32   return f;