The test clang/test/OpenMP/error_unsupport_feature.c don't check the output written to the current directory. The current directory may be write protected e.g. in a sandboxed environment. This patch replace the -emit-llvm option with -emit-llvm-only as it don't care about the outputed llvm IR.
9 lines
207 B
C
9 lines
207 B
C
// RUN: %clang_cc1 -emit-llvm-only -verify -fopenmp %s
|
|
|
|
int main () {
|
|
int r = 0;
|
|
#pragma omp scope reduction(+:r) // expected-error {{cannot compile this scope with FE outlining yet}}
|
|
r++;
|
|
return r;
|
|
}
|