Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/target-device-ancestor-1.c

raw
1 /* { dg-do compile } */
2
3 void
4 foo (void)
5 {
6 /* Ensure that a 'requires' directive with the 'reverse_offload' clause was
7 specified. */
8
9 #pragma omp target device (ancestor : 1) /* { dg-error "'ancestor' device modifier not preceded by 'requires' directive with 'reverse_offload' clause" } */
10 /* { dg-error "expected '\\)' before 'ancestor'" "" { target c } .-1 } */
11
12 ;
13 }