[libc++] Refactor the sequence container benchmarks (#119763)
[llvm-project.git] / clang / test / SemaOpenACC / data-construct-finalize-clause.c
blob252b26708cd811deb8c3ad9c6830b7571e97e1a1
1 // RUN: %clang_cc1 %s -fopenacc -verify
3 void Test() {
4 int I;
6 // expected-error@+1{{OpenACC 'finalize' clause is not valid on 'data' directive}}
7 #pragma acc data copyin(I) finalize
9 // expected-error@+1{{OpenACC 'finalize' clause is not valid on 'enter data' directive}}
10 #pragma acc enter data copyin(I) finalize
13 // finalize is valid only on exit data, otherwise has no other rules.
14 #pragma acc exit data copyout(I) finalize
16 // expected-error@+1{{OpenACC 'finalize' clause is not valid on 'host_data' directive}}
17 #pragma acc host_data use_device(I) finalize