aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/target-device-2.c
blob: b711ea15a24654a4d7c621bb9ec7c9ccd7dd3cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-additional-options "-fdump-tree-original" } */

  /* Test to ensure that device-modifier 'device_num' is parsed correctly in
     device clauses. */

void
foo (void)
{
  #pragma omp target device (device_num : 42)
  ;
}

/* { dg-final { scan-tree-dump "pragma omp target \[^\n\r)]*device\\(42\\)" "original" } } */