llvm-project/clang/test/OpenMP/error_unsupport_feature.c
Karl-Johan Karlsson aa486ec39c
[test][OpenMP] Avoid writing to a potentially write-protected dir (#94931)
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.
2024-06-10 16:47:37 +02:00

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;
}