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
10 extern void foo (void);
16 for (int i
= 0; i
< 10; i
++)
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" } */