| 1 |
// We have to run the compilation step to see the output, so we must be able to |
| 2 |
// target Windows. |
| 3 |
// REQUIRES: x86-registered-target |
| 4 |
|
| 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 |
| 12 |
|
| 13 |
// RUN: mkdir -p %t.dir |
| 14 |
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s |
| 15 |
// 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 %s |
| 16 |
|
| 17 |
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ -- %s 2>&1 | FileCheck -check-prefix=noshow %s |
| 18 |
// RUN: %clang_cl -fno-integrated-cc1 --target=i686-pc-win32 /c /Fo%t.dir/ /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s |
| 19 |
|
| 20 |
|
| 21 |
#pragma message "Hello" |
| 22 |
|
| 23 |
// show: cl-showfilenames.c |
| 24 |
// show-NEXT: warning: Hello |
| 25 |
|
| 26 |
// multiple: cl-showfilenames.c |
| 27 |
// multiple-NEXT: warning: Hello |
| 28 |
// multiple: wildcard1.c |
| 29 |
// multiple-NEXT: wildcard2.c |
| 30 |
|
| 31 |
// noshow: warning: Hello |
| 32 |
// noshow-NOT: cl-showfilenames.c |