[NFC][OpenMP] Use clang_cc1 to driver tests
authorJinsong Ji <jji@us.ibm.com>
Fri, 3 Sep 2021 20:33:47 +0000 (20:33 +0000)
committerJinsong Ji <jji@us.ibm.com>
Fri, 3 Sep 2021 20:33:48 +0000 (20:33 +0000)
commitd364eccdd5a924d34284dca47ed8b029507167ce
treeaf4075c642eb445b0e78ec2190067f6fda4ccbe0
parent05cdd294ab020b42329413ae7ab52d0c5aaf8151
[NFC][OpenMP] Use clang_cc1 to driver tests

The test driver-fopenmp-extensions.c is failing on platforms that does
not use integrated-as. It can be reproduced using -fno-integrated-as on
Linux too.

bin/clang -c -Xclang -verify=omp -fopenmp      -fopenmp-extensions
-fno-openmp-extensions
../llvm-project/clang/test/OpenMP/driver-fopenmp-extensions.c
-fno-integrated-as
Assembler messages:
Error: can't open /tmp/driver-fopenmp-extensions-8fafe8.s for reading:
No such file or directory
clang-14: error: assembler command failed with exit code 1 (use -v to
see invocation)

The goal of this test is to verify syntax diags only,
so we should use clang_cc1 to test.

Reviewed By: jdenny, ABataev

Differential Revision: https://reviews.llvm.org/D109255
clang/test/OpenMP/driver-fopenmp-extensions.c [deleted file]
clang/test/OpenMP/fopenmp-extensions.c [new file with mode: 0644]