[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / Driver / msvc-link.c
blob64e099ea63042f4b598121fd4f59eaff68ae093a
1 // RUN: %clang -target i686-pc-windows-msvc -fuse-ld=link -### %s 2>&1 | FileCheck --check-prefix=BASIC %s
2 // BASIC: link.exe"
3 // BASIC: "-out:a.exe"
4 // BASIC: "-defaultlib:libcmt"
5 // BASIC: "-defaultlib:oldnames"
6 // BASIC: "-nologo"
7 // BASIC-NOT: "-Brepro"
9 // RUN: %clang -target i686-pc-windows-msvc -shared -o a.dll -fuse-ld=link -### %s 2>&1 | FileCheck --check-prefix=DLL %s
10 // DLL: link.exe"
11 // DLL: "-out:a.dll"
12 // DLL: "-defaultlib:libcmt"
13 // DLL: "-defaultlib:oldnames"
14 // DLL: "-nologo"
15 // DLL: "-dll"
17 // RUN: %clang -target i686-pc-windows-msvc -L/var/empty -L/usr/lib -### %s 2>&1 | FileCheck --check-prefix LIBPATH %s
18 // LIBPATH: "-libpath:/var/empty"
19 // LIBPATH: "-libpath:/usr/lib"
20 // LIBPATH: "-nologo"
22 // RUN: %clang_cl /Brepro -fuse-ld=link -### -- %s 2>&1 | FileCheck --check-prefix=REPRO %s
23 // REPRO: link.exe"
24 // REPRO: "-out:msvc-link.exe"
25 // REPRO: "-nologo"
26 // REPRO: "-Brepro"
28 // RUN: %clang_cl /Brepro- -fuse-ld=link -### -- %s 2>&1 | FileCheck --check-prefix=NOREPRO %s
29 // NOREPRO: link.exe"
30 // NOREPRO: "-out:msvc-link.exe"
31 // NOREPRO: "-nologo"
32 // NOREPRO-NOT: "-Brepro"
34 // RUN: %clang_cl -fuse-ld=lld --vfsoverlay %s -### -- %s 2>&1 | FileCheck --check-prefix=VFSOVERLAY %s
35 // VFSOVERLAY: -cc1"
36 // VFSOVERLAY: "--vfsoverlay"
37 // VFSOVERLAY: lld-link
38 // VFSOVERLAY: "/vfsoverlay:{{.*}}" "{{.*}}.obj"