gcc/testsuite/c-c++-common/goacc/uninit-use-device-clause.c
raw| 1 | /* Test fails due to PR70388. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-excess-errors "PR70388" { xfail *-*-* } } */ |
| 4 | /* { dg-additional-options "-Wuninitialized" } */ |
| 5 | |
| 6 | void |
| 7 | foo (void) |
| 8 | { |
| 9 | int i; |
| 10 | |
| 11 | #pragma acc host_data use_device(i) /* { dg-warning "is used uninitialized" "" { xfail *-*-* } } */ |
| 12 | { |
| 13 | } |
| 14 | } |