1 // We have to run the compilation step to see the output, so we must be able to
3 // REQUIRES: x86-registered-target
5 // NOTE: -fno-integrated-cc1 has been added to work around an ASAN failure
6 // caused by in-process cc1 invocation. Clang InterfaceStubs is not the
7 // culprit, but Clang Interface Stubs' Driver pipeline setup uncovers an
8 // existing ASAN issue when invoking multiple normal cc1 jobs along with
9 // multiple Clang Interface Stubs cc1 jobs together.
10 // There is currently a discussion of this going on at:
11 // https://reviews.llvm.org/D69825
13 // RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s
14 // RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s
16 // RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ -- %s 2>&1 | FileCheck -check-prefix=noshow %s
17 // RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%T/ /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s
20 #pragma message "Hello"
22 // show: cl-showfilenames.c
23 // show-NEXT: warning: Hello
25 // multiple: cl-showfilenames.c
26 // multiple-NEXT: warning: Hello
27 // multiple: wildcard1.c
28 // multiple-NEXT: wildcard2.c
30 // noshow: warning: Hello
31 // noshow-NOT: cl-showfilenames.c