Debian Codegraph @

gcc/testsuite/c-c++-common/goacc/if-clause-1.c

raw
1 /* See also 'self-clause-1.c'. */
2
3 void
4 f (void)
5 {
6 struct { int i; } *p;
7 #pragma acc data copyout(p) if(1) if(1) /* { dg-error "too many 'if' clauses" } */
8 ;
9 #pragma acc update device(p) if(*p)
10 /* { dg-error {used struct type value where scalar is required} {} { target c } .-1 }
11 { dg-error {could not convert '\* p' from 'f\(\)::<unnamed struct>' to 'bool'} {} { target c++ } .-2 } */
12 }