brintos

brintos / llvm-project-archived public Read only

0
0
Text · 14.7 KiB · a8509e7 Raw
313 lines · c
1// Note: %s must be preceded by --, otherwise it may be interpreted as a2// command-line option, e.g. on Mac where %s is commonly under /Users.3 4// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULT %s5// RUN: %clang_cl /c -flto -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULT %s6// DEFAULT: "-o" "cl-outputs.obj"7 8// RUN: %clang_cl /Fo -### -- %s 2>&1 | FileCheck -check-prefix=FoEMPTY %s9// FoEMPTY:  "-o" "cl-outputs.obj"10 11// RUN: %clang_cl /Foa -### -- %s 2>&1 | FileCheck -check-prefix=FoNAME %s12// RUN: not %clang_cl /Foa -flto -### -- %s 2>&1 | FileCheck -check-prefix=FoNAME %s13// FoNAME:  "-o" "a.obj"14 15// RUN: %clang_cl /Foa.ext /Fob.ext -### -- %s 2>&1 | FileCheck -check-prefix=FoNAMEEXT %s16// FoNAMEEXT:  "-o" "b.ext"17 18// RUN: %clang_cl /Fofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FoDIR %s19// FoDIR:  "-o" "foo.dir{{[/\\]+}}cl-outputs.obj"20 21// RUN: %clang_cl /Fofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FoDIRNAME %s22// FoDIRNAME:  "-o" "foo.dir{{[/\\]+}}a.obj"23 24// RUN: %clang_cl /Fofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FoDIRNAMEEXT %s25// FoDIRNAMEEXT:  "-o" "foo.dir{{[/\\]+}}a.ext"26 27// RUN: %clang_cl /Fo.. -### -- %s 2>&1 | FileCheck -check-prefix=FoCRAZY %s28// FoCRAZY:  "-o" "..obj"29 30// RUN: not %clang_cl /Foa.obj -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEERROR %s31// CHECK-MULTIPLESOURCEERROR: error: cannot specify '/Foa.obj' when compiling multiple source files32 33// RUN: %clang_cl /Fomydir/ -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEOK %s34// CHECK-MULTIPLESOURCEOK: "-o" "mydir{{[/\\]+}}cl-outputs.obj"35 36// RUN: %clang_cl /Fo -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEOK2 %s37// CHECK-MULTIPLESOURCEOK2: "-o" "cl-outputs.obj"38// CHECK-MULTIPLESOURCEOK2: "-o" "cl-outputs.obj"39 40// RUN: %clang_cl /c /oa -### -- %s 2>&1 | FileCheck -check-prefix=oNAME1 %s41// oNAME1:  "-o" "a.obj"42 43// RUN: %clang_cl /c /o a -### -- %s 2>&1 | FileCheck -check-prefix=oNAME2 %s44// oNAME2:  "-o" "a.obj"45 46// RUN: %clang_cl /c /oa.ext /ob.ext -### -- %s 2>&1 | FileCheck -check-prefix=oNAMEEXT1 %s47// oNAMEEXT1:  "-o" "b.ext"48 49// RUN: %clang_cl /c /o a.ext /ob.ext -### -- %s 2>&1 | FileCheck -check-prefix=oNAMEEXT2 %s50// oNAMEEXT2:  "-o" "b.ext"51 52// RUN: %clang_cl /c /ofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=oDIR1 %s53// oDIR1:  "-o" "foo.dir{{[/\\]+}}cl-outputs.obj"54 55// RUN: %clang_cl /c /o foo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=oDIR2 %s56// oDIR2:  "-o" "foo.dir{{[/\\]+}}cl-outputs.obj"57 58// RUN: %clang_cl /c /ofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAME1 %s59// oDIRNAME1:  "-o" "foo.dir{{[/\\]+}}a.obj"60 61// RUN: %clang_cl /c /o foo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAME2 %s62// oDIRNAME2:  "-o" "foo.dir{{[/\\]+}}a.obj"63 64// RUN: %clang_cl /c /ofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAMEEXT1 %s65// oDIRNAMEEXT1:  "-o" "foo.dir{{[/\\]+}}a.ext"66 67// RUN: %clang_cl /c /o foo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAMEEXT2 %s68// oDIRNAMEEXT2:  "-o" "foo.dir{{[/\\]+}}a.ext"69 70// RUN: %clang_cl /c /o.. -### -- %s 2>&1 | FileCheck -check-prefix=oCRAZY1 %s71// oCRAZY1:  "-o" "..obj"72 73// RUN: %clang_cl /c /o .. -### -- %s 2>&1 | FileCheck -check-prefix=oCRAZY2 %s74// oCRAZY2:  "-o" "..obj"75 76// RUN: not %clang_cl /c %s -### /o 2>&1 | FileCheck -check-prefix=oMISSINGARG %s77// oMISSINGARG: error: argument to '/o' is missing (expected 1 value)78 79// RUN: %clang_cl /c /omydir/ -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-oMULTIPLESOURCEOK1 %s80// CHECK-oMULTIPLESOURCEOK1: "-o" "mydir{{[/\\]+}}cl-outputs.obj"81 82// RUN: %clang_cl /c /o mydir/ -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-oMULTIPLESOURCEOK2 %s83// CHECK-oMULTIPLESOURCEOK2: "-o" "mydir{{[/\\]+}}cl-outputs.obj"84 85// RUN: %clang_cl -emit-ast /otest.ast -###  -- %s  2>&1 | FileCheck -check-prefix=oASTNAME %s86// oASTNAME:  "-o" "test.ast"87 88// RUN: %clang_cl --analyze /otest.plist -###  -- %s  2>&1 | FileCheck -check-prefix=oPLIST %s89// oPLIST:  "-o" "test.plist"90 91// RUN: %clang_cl /c /obar /Fofoo -### -- %s 2>&1 | FileCheck -check-prefix=FooRACE1 %s92// FooRACE1: "-o" "foo.obj"93 94// RUN: %clang_cl /c /Fofoo /obar -### -- %s 2>&1 | FileCheck -check-prefix=FooRACE2 %s95// FooRACE2: "-o" "bar.obj"96 97 98// RUN: %clang_cl -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTEXE %s99// DEFAULTEXE: cl-outputs.exe100 101// RUN: %clang_cl /LD -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTDLL %s102// RUN: %clang_cl /LDd -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTDLL %s103// DEFAULTDLL: "-out:cl-outputs.dll"104// DEFAULTDLL: "-implib:cl-outputs.lib"105 106// RUN: %clang_cl /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s107// RUN: %clang_cl /Fe:foo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s108// FeNOEXT: "-out:foo.exe"109 110// RUN: %clang_cl /Fe -### -- %s 2>&1 | FileCheck -check-prefix=FeEMPTY %s111// FeEMPTY-NOT: argument to '/Fe' is missing112// FeEMPTY: "-out:cl-outputs.exe"113 114// RUN: %clang_cl /Fefoo /LD -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXTDLL %s115// RUN: %clang_cl /Fefoo /LDd -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXTDLL %s116// FeNOEXTDLL: "-out:foo.dll"117// FeNOEXTDLL: "-implib:foo.lib"118 119// RUN: %clang_cl /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s120// RUN: %clang_cl /Fe:foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s121// RUN: %clang_cl /Fe: foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s122// FeEXT: "-out:foo.ext"123 124// RUN: %clang_cl /LD /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s125// RUN: %clang_cl /LDd /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s126// FeEXTDLL: "-out:foo.ext"127// FeEXTDLL: "-implib:foo.lib"128 129// RUN: %clang_cl /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIR %s130// FeDIR: "-out:foo.dir{{[/\\]+}}cl-outputs.exe"131 132// RUN: %clang_cl /LD /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRDLL %s133// RUN: %clang_cl /LDd /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRDLL %s134// FeDIRDLL: "-out:foo.dir{{[/\\]+}}cl-outputs.dll"135// FeDIRDLL: "-implib:foo.dir{{[/\\]+}}cl-outputs.lib"136 137// RUN: %clang_cl /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAME %s138// FeDIRNAME: "-out:foo.dir{{[/\\]+}}a.exe"139 140// RUN: %clang_cl /LD /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEDLL %s141// RUN: %clang_cl /LDd /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEDLL %s142// FeDIRNAMEDLL: "-out:foo.dir{{[/\\]+}}a.dll"143// FeDIRNAMEDLL: "-implib:foo.dir{{[/\\]+}}a.lib"144 145// RUN: %clang_cl /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXT %s146// FeDIRNAMEEXT: "-out:foo.dir{{[/\\]+}}a.ext"147 148// RUN: %clang_cl /LD /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXTDLL %s149// RUN: %clang_cl /LDd /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXTDLL %s150// FeDIRNAMEEXTDLL: "-out:foo.dir{{[/\\]+}}a.ext"151// FeDIRNAMEEXTDLL: "-implib:foo.dir{{[/\\]+}}a.lib"152 153// RUN: %clang_cl /Fefoo /Febar -### -- %s 2>&1 | FileCheck -check-prefix=FeOVERRIDE %s154// FeOVERRIDE: "-out:bar.exe"155 156 157// RUN: %clang_cl /obar /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeoRACE1 %s158// FeoRACE1: "-out:foo.exe"159 160// RUN: %clang_cl /Fefoo /obar -### -- %s 2>&1 | FileCheck -check-prefix=FeoRACE2 %s161// FeoRACE2: "-out:bar.exe"162 163 164// RUN: %clang_cl /ofoo -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXT1 %s165// FeoNOEXT1: "-out:foo.exe"166 167// RUN: %clang_cl /o foo -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXT2 %s168// FeoNOEXT2: "-out:foo.exe"169 170// RUN: %clang_cl /o foo /LD -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXTDLL %s171// RUN: %clang_cl /ofoo /LDd -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXTDLL %s172// FeoNOEXTDLL: "-out:foo.dll"173// FeoNOEXTDLL: "-implib:foo.lib"174 175// RUN: %clang_cl /ofoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXT1 %s176// FeoEXT1: "-out:foo.ext"177 178// RUN: %clang_cl /o foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXT2 %s179// FeoEXT2: "-out:foo.ext"180 181// RUN: %clang_cl /LD /o foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXTDLL %s182// RUN: %clang_cl /LDd /ofoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXTDLL %s183// FeoEXTDLL: "-out:foo.ext"184// FeoEXTDLL: "-implib:foo.lib"185 186// RUN: %clang_cl /ofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIR1 %s187// FeoDIR1: "-out:foo.dir{{[/\\]+}}cl-outputs.exe"188 189// RUN: %clang_cl /o foo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIR2 %s190// FeoDIR2: "-out:foo.dir{{[/\\]+}}cl-outputs.exe"191 192// RUN: %clang_cl /LD /o foo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRDLL %s193// RUN: %clang_cl /LDd /ofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRDLL %s194// FeoDIRDLL: "-out:foo.dir{{[/\\]+}}cl-outputs.dll"195// FeoDIRDLL: "-implib:foo.dir{{[/\\]+}}cl-outputs.lib"196 197// RUN: %clang_cl /ofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAME1 %s198// FeoDIRNAME1: "-out:foo.dir{{[/\\]+}}a.exe"199 200// RUN: %clang_cl /o foo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAME2 %s201// FeoDIRNAME2: "-out:foo.dir{{[/\\]+}}a.exe"202 203// RUN: %clang_cl /LD /o foo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEDLL %s204// RUN: %clang_cl /LDd /ofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEDLL %s205// FeoDIRNAMEDLL: "-out:foo.dir{{[/\\]+}}a.dll"206// FeoDIRNAMEDLL: "-implib:foo.dir{{[/\\]+}}a.lib"207 208// RUN: %clang_cl /ofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXT1 %s209// FeoDIRNAMEEXT1: "-out:foo.dir{{[/\\]+}}a.ext"210 211// RUN: %clang_cl /o foo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXT2 %s212// FeoDIRNAMEEXT2: "-out:foo.dir{{[/\\]+}}a.ext"213 214// RUN: %clang_cl /LD /o foo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXTDLL %s215// RUN: %clang_cl /LDd /ofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXTDLL %s216// FeoDIRNAMEEXTDLL: "-out:foo.dir{{[/\\]+}}a.ext"217// FeoDIRNAMEEXTDLL: "-implib:foo.dir{{[/\\]+}}a.lib"218 219// RUN: not %clang_cl -### /o 2>&1 | FileCheck -check-prefix=FeoMISSINGARG %s220// FeoMISSINGARG: error: argument to '/o' is missing (expected 1 value)221 222// RUN: %clang_cl /ofoo /o bar -### -- %s 2>&1 | FileCheck -check-prefix=FeoOVERRIDE %s223// FeoOVERRIDE: "-out:bar.exe"224 225 226// RUN: %clang_cl /FA -### -- %s 2>&1 | FileCheck -check-prefix=FA %s227// FA: "-o" "cl-outputs.asm"228// RUN: %clang_cl /FA /Fa -### -- %s 2>&1 | FileCheck -check-prefix=FaEMPTY %s229// FaEMPTY: "-o" "cl-outputs.asm"230// RUN: %clang_cl /FA /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FaNAME %s231// RUN: %clang_cl /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FaNAME %s232// FaNAME:  "-o" "foo.asm"233// RUN: %clang_cl /FA /Faa.ext /Fab.ext -### -- %s 2>&1 | FileCheck -check-prefix=FaNAMEEXT %s234// FaNAMEEXT:  "-o" "b.ext"235// RUN: %clang_cl /FA /Fafoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FaDIR %s236// FaDIR:  "-o" "foo.dir{{[/\\]+}}cl-outputs.asm"237// RUN: %clang_cl /FA /Fafoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FaDIRNAME %s238// FaDIRNAME:  "-o" "foo.dir{{[/\\]+}}a.asm"239// RUN: %clang_cl /FA /Fafoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FaDIRNAMEEXT %s240// FaDIRNAMEEXT:  "-o" "foo.dir{{[/\\]+}}a.ext"241// RUN: not %clang_cl /Faa.asm -### -- %s %s 2>&1 | FileCheck -check-prefix=FaMULTIPLESOURCE %s242// FaMULTIPLESOURCE: error: cannot specify '/Faa.asm' when compiling multiple source files243// RUN: %clang_cl /Fa -### -- %s %s 2>&1 | FileCheck -check-prefix=FaMULTIPLESOURCEOK %s244// FaMULTIPLESOURCEOK: "-o" "cl-outputs.asm"245// FaMULTIPLESOURCEOK: "-o" "cl-outputs.asm"246 247// Copy of the same tests above, but with /FAcsu248// RUN: %clang_cl /FAcsu -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU %s249// FA_CSU: "-o" "cl-outputs.asm"250// RUN: %clang_cl /FAcsu /Fa -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaEMPTY %s251// FA_CSU_FaEMPTY: "-o" "cl-outputs.asm"252// RUN: %clang_cl /FAcsu /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaNAME %s253// RUN: %clang_cl /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaNAME %s254// FA_CSU_FaNAME:  "-o" "foo.asm"255// RUN: %clang_cl /FAcsu /Faa.ext /Fab.ext -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaNAMEEXT %s256// FA_CSU_FaNAMEEXT:  "-o" "b.ext"257// RUN: %clang_cl /FAcsu /Fafoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaDIR %s258// FA_CSU_FaDIR:  "-o" "foo.dir{{[/\\]+}}cl-outputs.asm"259// RUN: %clang_cl /FAcsu /Fafoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaDIRNAME %s260// FA_CSU_FaDIRNAME:  "-o" "foo.dir{{[/\\]+}}a.asm"261// RUN: %clang_cl /FAcsu /Fafoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaDIRNAMEEXT %s262// FA_CSU_FaDIRNAMEEXT:  "-o" "foo.dir{{[/\\]+}}a.ext"263// RUN: not %clang_cl /Faa.asm -### -- %s %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaMULTIPLESOURCE %s264// FA_CSU_FaMULTIPLESOURCE: error: cannot specify '/Faa.asm' when compiling multiple source files265// RUN: %clang_cl /Fa -### -- %s %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaMULTIPLESOURCEOK %s266// FA_CSU_FaMULTIPLESOURCEOK: "-o" "cl-outputs.asm"267// FA_CSU_FaMULTIPLESOURCEOK: "-o" "cl-outputs.asm"268 269// RUN: %clang_cl /P -### -- %s 2>&1 | FileCheck -check-prefix=P %s270// P: "-E"271// P: "-o" "cl-outputs.i"272 273// RUN: %clang_cl /P /Fifoo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s274// RUN: %clang_cl /P /Fi:foo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s275// RUN: %clang_cl /P /Fi: foo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s276// Fi1: "-E"277// Fi1: "-o" "foo.i"278 279// RUN: %clang_cl /P /Fifoo.x -### -- %s 2>&1 | FileCheck -check-prefix=Fi2 %s280// Fi2: "-E"281// Fi2: "-o" "foo.x"282 283// To match MSVC behavior /o should be ignored for /P output.284 285// RUN: %clang_cl /P /ofoo -### -- %s 2>&1 | FileCheck -check-prefix=Fio1 %s286// Fio1: "-E"287// Fio1: "-o" "cl-outputs.i"288 289// RUN: %clang_cl /P /o foo.x -### -- %s 2>&1 | FileCheck -check-prefix=Fio2 %s290// Fio2: "-E"291// Fio2: "-o" "cl-outputs.i"292 293// RUN: %clang_cl /P /obar.x /Fifoo.x -### -- %s 2>&1 | FileCheck -check-prefix=FioRACE1 %s294// FioRACE1: "-E"295// FioRACE1: "-o" "foo.x"296 297// RUN: %clang_cl /P /Fifoo.x /obar.x -### -- %s 2>&1 | FileCheck -check-prefix=FioRACE2 %s298// FioRACE2: "-E"299// FioRACE2: "-o" "foo.x"300 301// RUN: %clang_cl -target x86_64-windows /Z7 /Foa.obj -### -- %s 2>&1 | FileCheck -check-prefix=ABSOLUTE_OBJPATH %s302// ABSOLUTE_OBJPATH: "-object-file-name={{.*}}a.obj"303 304// RUN: %clang_cl -target x86_64-windows -fdebug-compilation-dir=. /Z7 /Foa.obj -### -- %s 2>&1 | FileCheck -check-prefix=RELATIVE_OBJPATH1 %s305// RELATIVE_OBJPATH1: "-object-file-name=a.obj"306 307// RUN: %clang_cl -target x86_64-windows -fdebug-compilation-dir=. /Z7 /Fo:a.obj -### -- %s 2>&1 | FileCheck -check-prefix=RELATIVE_OBJPATH1_COLON %s308// RUN: %clang_cl -target x86_64-windows -fdebug-compilation-dir=. /Z7 /Fo: a.obj -### -- %s 2>&1 | FileCheck -check-prefix=RELATIVE_OBJPATH1_COLON %s309// RELATIVE_OBJPATH1_COLON: "-object-file-name=a.obj"310 311// RUN: %clang_cl -target x86_64-windows -fdebug-compilation-dir=. /Z7 /Fofoo/a.obj -### -- %s 2>&1 | FileCheck -check-prefix=RELATIVE_OBJPATH2 %s312// RELATIVE_OBJPATH2: "-object-file-name=foo\\a.obj"313