gcc/testsuite/c-c++-common/gomp/target-device-ancestor-4.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-additional-options "-fdump-tree-original" } */ |
| 3 | |
| 4 | /* Test to ensure that device-modifier 'ancestor' is parsed correctly in |
| 5 | device clauses. */ |
| 6 | |
| 7 | #pragma omp requires reverse_offload |
| 8 | |
| 9 | void |
| 10 | foo (void) |
| 11 | { |
| 12 | #pragma omp target device (ancestor: 1) |
| 13 | ; |
| 14 | |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-tree-dump "pragma omp target \[^\n\r)]*device\\(ancestor:1\\)" "original" } } */ |