Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / ParserOpenACC / unimplemented.cpp
blob0acd69a7ae08766d0ea6a7763e02cb2d37e03cec
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::ParseCXXClassMemberDeclarationWithPragmas
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(false) {}