]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/c-c++-common/gomp/target-device-ancestor-4.c
Merge branch 'master' into devel/modula-2.
[gcc.git] / gcc / testsuite / c-c++-common / gomp / target-device-ancestor-4.c
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) /* { dg-message "sorry, unimplemented: 'ancestor' not yet supported" } */
13 ;
14
15 }
16
17 /* { dg-final { scan-tree-dump "pragma omp target \[^\n\r)]*device\\(ancestor:1\\)" "original" } } */
This page took 0.038239 seconds and 5 git commands to generate.