c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / target-device-ancestor-4.c
blob87ac7548c23f4568a7994e98535fd9bf57485c01
1 /* { dg-do compile } */
2 /* { dg-additional-options "-fdump-tree-original" } */
4 /* Test to ensure that device-modifier 'ancestor' is parsed correctly in
5 device clauses. */
7 #pragma omp requires reverse_offload
9 void
10 foo (void)
12 #pragma omp target device (ancestor: 1)
17 /* { dg-final { scan-tree-dump "pragma omp target \[^\n\r)]*device\\(ancestor:1\\)" "original" } } */