[clang-format] Fix a bug in aligning comments above PPDirective (#72791)
[llvm-project.git] / clang / test / ParserOpenACC / unimplemented.c
blobdd2e8bea74709180c6802c27273a8feba0770983
1 // RUN: %clang_cc1 %s -verify -fopenacc
3 // Parser::ParseExternalDeclaration
4 // expected-error@+3{{invalid OpenACC directive 'not'}}
5 // expected-warning@+2{{OpenACC clause parsing not yet implemented}}
6 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
7 #pragma acc not yet implemented
8 int foo;
10 struct S {
11 // Parser::ParseStructUnionBody
12 // expected-error@+3{{invalid OpenACC directive 'not'}}
13 // expected-warning@+2{{OpenACC clause parsing not yet implemented}}
14 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
15 #pragma acc not yet implemented
16 int foo;
19 void func() {
20 // Parser::ParseStmtOrDeclarationAfterAttributes
21 // expected-error@+3{{invalid OpenACC directive 'not'}}
22 // expected-warning@+2{{OpenACC clause parsing not yet implemented}}
23 // expected-warning@+1{{OpenACC directives not yet implemented, pragma ignored}}
24 #pragma acc not yet implemented
25 while(0) {}