Debian Codegraph @

clang/test/SemaOpenACC/gh139894.cpp

raw
1 // RUN: %clang_cc1 %s -fopenacc -verify
2
3 // Ensure that these don't assert, they previously assumed that their directive
4 // kind would be valid, but we should make sure that we handle that gracefully
5 // in cases where they don't.
6
7 // expected-error@+1{{invalid OpenACC directive 'foo'}}
8 #pragma acc foo gang(1)
9
10 // expected-error@+1{{invalid OpenACC directive 'foo'}}
11 #pragma acc foo vector(1)
12
13 // expected-error@+1{{invalid OpenACC directive 'foo'}}
14 #pragma acc foo worker(1)