Debian Codegraph @

gcc/testsuite/c-c++-common/gomp/declare-target-7.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fopenmp" } */
3
4 #pragma omp declare target device_type (any) /* { dg-error "directive with only 'device_type' or 'indirect' clauses" } */
5
6 void f1 (void) {}
7 #pragma omp declare target device_type (host) to (f1) device_type (nohost) /* { dg-error "too many 'device_type' clauses" } */
8 #pragma omp declare target device_type (any) to (f1) device_type (any) /* { dg-error "too many 'device_type' clauses" } */