brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 077ab81 Raw
33 lines · c
1// We have to run the compilation step to see the output, so we must be able to2// target Windows.3// REQUIRES: x86-registered-target4 5// NOTE: -fno-integrated-cc1 has been added to work around an ASAN failure6//       caused by in-process cc1 invocation. Clang InterfaceStubs is not the7//       culprit, but Clang Interface Stubs' Driver pipeline setup uncovers an8//       existing ASAN issue when invoking multiple normal cc1 jobs along with9//       multiple Clang Interface Stubs cc1 jobs together.10//       There is currently a discussion of this going on at:11//         https://reviews.llvm.org/D6982512 13// RUN: mkdir -p %t.dir14// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s15// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s16 17// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ -- %s 2>&1 | FileCheck -check-prefix=noshow %s18// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s19 20 21#pragma message "Hello"22 23// show: cl-showfilenames.c24// show-NEXT: warning: Hello25 26// multiple: cl-showfilenames.c27// multiple-NEXT: warning: Hello28// multiple: wildcard1.c29// multiple-NEXT: wildcard2.c30 31// noshow: warning: Hello32// noshow-NOT: cl-showfilenames.c33