brintos

brintos / llvm-project-archived public Read only

0
0
Text · 477 B · f1f6298 Raw
15 lines · cpp
1// RUN: %clang_cc1 %s -fopenacc -verify2 3// Ensure that these don't assert, they previously assumed that their directive4// kind would be valid, but we should make sure that we handle that gracefully5// in cases where they don't.6 7// expected-error@+1{{invalid OpenACC directive 'foo'}}8#pragma acc foo gang(1)9 10// expected-error@+1{{invalid OpenACC directive 'foo'}}11#pragma acc foo vector(1)12 13// expected-error@+1{{invalid OpenACC directive 'foo'}}14#pragma acc foo worker(1)15