Value Range: Add range op for builtin isnormal
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / map-incomplete-type.c
blob29702defa6a6d78ac0391c510d71fa76c6b8f243
1 struct incomplete_t;
2 /* { dg-note "forward declaration of 'struct incomplete_t'" "" { target c++ } .-1 } */
4 /* Note: This note is only printed with C++ (trice); the loc is available due to TYPE_MAIN_DECL. */
6 struct incomplete_t *ptr;
7 int i;
9 void
10 foo (void)
12 #pragma omp target enter data map(to: i) map(to: ptr[0])
13 /* All apply to the line above. The first error is printed twice. */
14 /* { dg-error "invalid use of undefined type 'struct incomplete_t'" "" { target c } .-2 } */
15 /* { dg-error "invalid use of incomplete type 'struct incomplete_t'" "" { target c++ } .-3 } */
16 /* { dg-error "array section does not have mappable type in 'map' clause" "" { target *-*-* } .-4 } */