1 // RUN: %clang -target i686-pc-windows-msvc -### %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"
8 
9 // RUN: %clang -target i686-pc-windows-msvc -shared -o a.dll -### %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"
16 
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"
21 
22 // RUN: %clang_cl /Brepro -### -- %s 2>&1 | FileCheck --check-prefix=REPRO %s
23 // REPRO: link.exe"
24 // REPRO: "-out:msvc-link.exe"
25 // REPRO: "-nologo"
26 // REPRO: "-Brepro"
27 
28 // RUN: %clang_cl /Brepro- -### -- %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"
33