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