Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / ParserOpenACC / unimplemented.c
blob7426e028c0252c7a39a4973799d242bc79ea2cbe
1 // RUN: %clang_cc1 %s -verify -fopenacc
3 // Parser::ParseExternalDeclaration
4 // expected-error@+2{{invalid OpenACC directive 'havent'}}
5 // expected-error@+1{{invalid OpenACC clause 'implemented'}}
6 #pragma acc havent implemented
7 int foo;
9 struct S {
10 // Parser::ParseStructUnionBody
11 // expected-error@+2{{invalid OpenACC directive 'havent'}}
12 // expected-error@+1{{invalid OpenACC clause 'implemented'}}
13 #pragma acc havent implemented
14 int foo;
17 void func() {
18 // Parser::ParseStmtOrDeclarationAfterAttributes
19 // expected-error@+2{{invalid OpenACC directive 'havent'}}
20 // expected-error@+1{{invalid OpenACC clause 'implemented'}}
21 #pragma acc havent implemented
22 while(0) {}