[libc++][NFC] Replace typedefs with using aliases in <string> (#126070)
[llvm-project.git] / clang / test / SemaOpenACC / combined-construct-device_type-clause.cpp
blobb46709aa8d4ce3f8c92a42ca08195507132faa39
1 // RUN: %clang_cc1 %s -fopenacc -verify
3 template<typename T>
4 void TemplUses() {
5 #pragma acc parallel loop device_type(I)
6 for(int i = 0; i < 5; ++i);
7 #pragma acc serial loop dtype(*)
8 for(int i = 0; i < 5; ++i);
9 #pragma acc kernels loop device_type(class)
10 for(int i = 0; i < 5; ++i);
11 #pragma acc parallel loop device_type(private)
12 for(int i = 0; i < 5; ++i);
13 #pragma acc serial loop device_type(bool)
14 for(int i = 0; i < 5; ++i);
15 #pragma acc kernels loop dtype(true) device_type(false)
16 for(int i = 0; i < 5; ++i);
17 // expected-error@+2{{expected ','}}
18 // expected-error@+1{{expected identifier}}
19 #pragma acc kernels loop device_type(T::value)
20 for(int i = 0; i < 5; ++i);
23 void Inst() {
24 TemplUses<int>(); // #INST