A recent change to the error message produced for unhandled compound statements without scope introduced a failure in an OpenACC test that was checking for the old error message. This change updates the test to check for the new message.
20 lines
835 B
C++
20 lines
835 B
C++
// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fopenacc -fclangir -emit-cir %s -o %t.cir -verify
|
|
|
|
void HelloWorld(int *A, int *B, int *C, int N) {
|
|
|
|
// expected-error@+2{{ClangIR code gen Not Yet Implemented: OpenACC Atomic Construct}}
|
|
// expected-error@+1{{ClangIR code gen Not Yet Implemented: emitCompoundStmtWithoutScope: OpenACCAtomicConstruct}}
|
|
#pragma acc atomic
|
|
N = N + 1;
|
|
|
|
// expected-error@+1{{ClangIR code gen Not Yet Implemented: OpenACC Declare Construct}}
|
|
#pragma acc declare create(A)
|
|
|
|
// expected-error@+1{{ClangIR code gen Not Yet Implemented: OpenACC Clause: private}}
|
|
#pragma acc parallel loop private(A)
|
|
for(int i = 0; i <5; ++i);
|
|
// expected-error@+1{{ClangIR code gen Not Yet Implemented: OpenACC Clause: reduction}}
|
|
#pragma acc parallel loop reduction(+:A)
|
|
for(int i = 0; i <5; ++i);
|
|
}
|