brintos

brintos / llvm-project-archived public Read only

0
0
Text · 587 B · 252b267 Raw
20 lines · c
1// RUN: %clang_cc1 %s -fopenacc -verify2 3void Test() {4  int I;5 6  // expected-error@+1{{OpenACC 'finalize' clause is not valid on 'data' directive}}7#pragma acc data copyin(I) finalize8  ;9  // expected-error@+1{{OpenACC 'finalize' clause is not valid on 'enter data' directive}}10#pragma acc enter data copyin(I) finalize11  ;12 13  // finalize is valid only on exit data, otherwise has no other rules.14#pragma acc exit data copyout(I) finalize15  ;16  // expected-error@+1{{OpenACC 'finalize' clause is not valid on 'host_data' directive}}17#pragma acc host_data use_device(I) finalize18  ;19}20