Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/gomp/declare-target-4.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-fopenmp" } */ | |
3 | |
4 #pragma omp declare target device_type (any) /* { dg-warning "directive with only 'device_type' clauses ignored" } */ | |
5 | |
6 void f1 (void) {} | |
7 void f2 (void); | |
8 #pragma omp declare target to (f1) device_type (any) to (f2) | |
9 | |
10 void f3 (void) {} | |
11 void f4 (void) {} | |
12 #pragma omp declare target device_type (host) to (f3) | |
13 #pragma omp declare target to (f4) device_type (nohost) | |
14 | |
15 #pragma omp declare target | |
16 void f5 (void); | |
17 void f6 (void) {} | |
18 void f7 (void) {} | |
19 #pragma omp declare target to (f7) | |
20 void f8 (void) {} | |
21 #pragma omp declare target to (f8, f5) | |
22 #pragma omp declare target to (f5) to(f8) | |
23 #pragma omp declare target to (f8) device_type (host) | |
24 void f9 (void) {} | |
25 #pragma omp declare target to (f9) device_type (nohost) | |
26 #pragma omp declare target to (f9) | |
27 void f10 (void) {} | |
28 #pragma omp declare target device_type (any) to (f10) | |
29 void f11 (void) {} | |
30 #pragma omp end declare target | |
31 | |
32 void f12 (void) {} | |
33 #pragma omp declare target device_type (any) to (f12) | |
34 #pragma omp declare target to (f12) device_type (host) | |
35 void f13 (void) {} | |
36 #pragma omp declare target device_type (host) to (f13) | |
37 #pragma omp declare target to (f13) device_type (nohost) | |
38 void f14 (void) {} | |
39 #pragma omp declare target device_type (nohost) to (f14) | |
40 #pragma omp declare target device_type (any) to (f14) | |
41 void f15 (void) {} | |
42 #pragma omp declare target device_type (host) to (f15) device_type (nohost) | |
43 void f16 (void) {} | |
44 #pragma omp declare target device_type (any) to (f15) device_type (any) |