| 1 |
// RUN: %clang_cc1 %s -fopenacc -verify |
| 2 |
|
| 3 |
void Test() { |
| 4 |
int I; |
| 5 |
|
| 6 |
// expected-error@+1{{OpenACC 'if_present' clause is not valid on 'data' directive}} |
| 7 |
#pragma acc data copyin(I) if_present |
| 8 |
; |
| 9 |
// expected-error@+1{{OpenACC 'if_present' clause is not valid on 'enter data' directive}} |
| 10 |
#pragma acc enter data copyin(I) if_present |
| 11 |
; |
| 12 |
|
| 13 |
// expected-error@+1{{OpenACC 'if_present' clause is not valid on 'exit data' directive}} |
| 14 |
#pragma acc exit data copyout(I) if_present |
| 15 |
; |
| 16 |
#pragma acc host_data use_device(I) if_present |
| 17 |
; |
| 18 |
} |