[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / test / ParserOpenACC / parse-clauses.c
blob1e05d82906aedc471f0d2ff3bd486853f8810567
1 // RUN: %clang_cc1 %s -verify -fopenacc -std=c99
2 // RUNX: %clang_cc1 %s -verify -fopenacc
3 // RUNX: %clang_cc1 %s -verify -fopenacc -x c++
5 void func() {
7 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
8 #pragma acc enter data finalize
10 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
11 #pragma acc enter data finalize finalize
13 // expected-error@+2{{invalid OpenACC clause 'invalid'}}
14 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
15 #pragma acc enter data finalize invalid
17 // expected-error@+2{{invalid OpenACC clause 'invalid'}}
18 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
19 #pragma acc enter data finalize invalid invalid finalize
21 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
22 #pragma acc enter data seq finalize
24 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
25 #pragma acc host_data if_present
27 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
28 #pragma acc host_data if_present, if_present
30 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
31 #pragma acc loop seq independent auto
33 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
34 #pragma acc loop seq, independent auto
36 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
37 #pragma acc loop seq independent, auto
39 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
40 #pragma acc kernels loop seq independent auto
42 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
43 #pragma acc serial loop seq, independent auto
45 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
46 #pragma acc parallel loop seq independent, auto
49 // expected-error@+2{{expected identifier}}
50 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
51 #pragma acc loop , seq
53 // expected-error@+2{{expected identifier}}
54 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
55 #pragma acc loop seq,
59 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
60 #pragma acc routine worker, vector, seq, nohost
61 void bar();
63 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
64 #pragma acc routine(bar) worker, vector, seq, nohost