Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / requires-1.c
blob31996f1ecf657348f8cf25d97df8aac098ff3ee7
1 /* { dg-do link { target offload_target_any } } */
2 /* { dg-additional-sources requires-1-aux.c } */
4 /* Check diagnostic by device-compiler's lto1.
5 Other file uses: 'requires unified_address'. */
7 #pragma omp requires unified_shared_memory
9 int a[10];
10 extern void foo (void);
12 int
13 main (void)
15 #pragma omp target
16 for (int i = 0; i < 10; i++)
17 a[i] = 0;
19 foo ();
20 return 0;
23 /* { dg-error "OpenMP 'requires' directive with non-identical clauses in multiple compilation units: 'unified_shared_memory' vs. 'unified_address'" "" { target *-*-* } 0 }
24 { dg-note {requires-1\.c' has 'unified_shared_memory'} {} { target *-*-* } 0 }
25 { dg-note {requires-1-aux\.c' has 'unified_address'} {} { target *-*-* } 0 } */
26 /* { dg-excess-errors "Ignore messages like: errors during merging of translation units|mkoffload returned 1 exit status" } */