[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git] / gcc / testsuite / gcc.dg / gomp / pr35738.c
blob0b3866eae3b94536df5e643b2d4299a2f70de0e9
1 /* PR c/35738 */
2 /* { dg-do compile } */
3 /* { dg-options "-fopenmp" } */
5 void foo (void);
7 void
8 bar (void *p)
10 int i = 0;
11 char q[10];
12 #pragma omp atomic
13 i += q; /* { dg-warning "makes integer from pointer without a cast" } */
14 #pragma omp atomic
15 i += foo; /* { dg-warning "makes integer from pointer without a cast" } */
16 #pragma omp atomic
17 i += p; /* { dg-warning "makes integer from pointer without a cast" } */