erichkeane db4ea21dfd [OpenACC] Change 'not implemented' diagnostic to be more specific
Currently we just emit a generic 'not implemented' diagnostic for all
OpenACC pragmas. This patch moves the diagnostic to 'Sema' and diagnoses
for a specific clause or construct, in preperation of implementing Sema
for constructs.
2024-02-15 12:22:11 -08:00

24 lines
702 B
C++

// RUN: %clang_cc1 %s -verify -fopenacc
// Parser::ParseExternalDeclaration
// expected-error@+2{{invalid OpenACC directive 'havent'}}
// expected-error@+1{{invalid OpenACC clause 'implemented'}}
#pragma acc havent implemented
int foo;
struct S {
// Parser::ParseCXXClassMemberDeclarationWithPragmas
// expected-error@+2{{invalid OpenACC directive 'havent'}}
// expected-error@+1{{invalid OpenACC clause 'implemented'}}
#pragma acc havent implemented
int foo;
};
void func() {
// Parser::ParseStmtOrDeclarationAfterAttributes
// expected-error@+2{{invalid OpenACC directive 'havent'}}
// expected-error@+1{{invalid OpenACC clause 'implemented'}}
#pragma acc havent implemented
while(false) {}
}