brintos

brintos / llvm-project-archived public Read only

0
0
Text · 702 B · 0acd69a Raw
24 lines · cpp
1// RUN: %clang_cc1 %s -verify -fopenacc2 3// Parser::ParseExternalDeclaration4// expected-error@+2{{invalid OpenACC directive 'havent'}}5// expected-error@+1{{invalid OpenACC clause 'implemented'}}6#pragma acc havent implemented7int foo;8 9struct S {10// Parser::ParseCXXClassMemberDeclarationWithPragmas11// expected-error@+2{{invalid OpenACC directive 'havent'}}12// expected-error@+1{{invalid OpenACC clause 'implemented'}}13#pragma acc havent implemented14  int foo;15};16 17void func() {18// Parser::ParseStmtOrDeclarationAfterAttributes19// expected-error@+2{{invalid OpenACC directive 'havent'}}20// expected-error@+1{{invalid OpenACC clause 'implemented'}}21#pragma acc havent implemented22  while(false) {}23}24