Clang Project

clang_source_code/test/Driver/cl-showfilenames.c
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// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s 2>&1 | FileCheck -check-prefix=show %s
6// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ /showFilenames -- %s %S/Inputs/wildcard*.c 2>&1 | FileCheck -check-prefix=multiple %s
7
8// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ -- %s 2>&1 | FileCheck -check-prefix=noshow %s
9// RUN: %clang_cl --target=i686-pc-win32 /c /Fo%T/ /showFilenames /showFilenames- -- %s 2>&1 | FileCheck -check-prefix=noshow %s
10
11
12#pragma message "Hello"
13
14// show: cl-showfilenames.c
15// show-NEXT: warning: Hello
16
17// multiple: cl-showfilenames.c
18// multiple-NEXT: warning: Hello
19// multiple: wildcard1.c
20// multiple-NEXT: wildcard2.c
21
22// noshow: warning: Hello
23// noshow-NOT: cl-showfilenames.c
24