1 // Note: %s must be preceded by --, otherwise it may be interpreted as a 2 // 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 %s 5 // RUN: %clang_cl /c -flto -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULT %s 6 // DEFAULT: "-o" "cl-outputs.obj" 7 8 // RUN: %clang_cl /Fo -### -- %s 2>&1 | FileCheck -check-prefix=FoEMPTY %s 9 // FoEMPTY: "-o" "cl-outputs.obj" 10 11 // RUN: %clang_cl /Foa -### -- %s 2>&1 | FileCheck -check-prefix=FoNAME %s 12 // RUN: not %clang_cl /Foa -flto -### -- %s 2>&1 | FileCheck -check-prefix=FoNAME %s 13 // FoNAME: "-o" "a.obj" 14 15 // RUN: %clang_cl /Foa.ext /Fob.ext -### -- %s 2>&1 | FileCheck -check-prefix=FoNAMEEXT %s 16 // FoNAMEEXT: "-o" "b.ext" 17 18 // RUN: %clang_cl /Fofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FoDIR %s 19 // FoDIR: "-o" "foo.dir{{[/\\]+}}cl-outputs.obj" 20 21 // RUN: %clang_cl /Fofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FoDIRNAME %s 22 // FoDIRNAME: "-o" "foo.dir{{[/\\]+}}a.obj" 23 24 // RUN: %clang_cl /Fofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FoDIRNAMEEXT %s 25 // FoDIRNAMEEXT: "-o" "foo.dir{{[/\\]+}}a.ext" 26 27 // RUN: %clang_cl /Fo.. -### -- %s 2>&1 | FileCheck -check-prefix=FoCRAZY %s 28 // FoCRAZY: "-o" "..obj" 29 30 // RUN: not %clang_cl /Foa.obj -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEERROR %s 31 // CHECK-MULTIPLESOURCEERROR: error: cannot specify '/Foa.obj' when compiling multiple source files 32 33 // RUN: %clang_cl /Fomydir/ -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEOK %s 34 // CHECK-MULTIPLESOURCEOK: "-o" "mydir{{[/\\]+}}cl-outputs.obj" 35 36 // RUN: %clang_cl /Fo -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-MULTIPLESOURCEOK2 %s 37 // 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 %s 41 // oNAME1: "-o" "a.obj" 42 43 // RUN: %clang_cl /c /o a -### -- %s 2>&1 | FileCheck -check-prefix=oNAME2 %s 44 // oNAME2: "-o" "a.obj" 45 46 // RUN: %clang_cl /c /oa.ext /ob.ext -### -- %s 2>&1 | FileCheck -check-prefix=oNAMEEXT1 %s 47 // oNAMEEXT1: "-o" "b.ext" 48 49 // RUN: %clang_cl /c /o a.ext /ob.ext -### -- %s 2>&1 | FileCheck -check-prefix=oNAMEEXT2 %s 50 // oNAMEEXT2: "-o" "b.ext" 51 52 // RUN: %clang_cl /c /ofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=oDIR1 %s 53 // oDIR1: "-o" "foo.dir{{[/\\]+}}cl-outputs.obj" 54 55 // RUN: %clang_cl /c /o foo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=oDIR2 %s 56 // oDIR2: "-o" "foo.dir{{[/\\]+}}cl-outputs.obj" 57 58 // RUN: %clang_cl /c /ofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAME1 %s 59 // oDIRNAME1: "-o" "foo.dir{{[/\\]+}}a.obj" 60 61 // RUN: %clang_cl /c /o foo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAME2 %s 62 // oDIRNAME2: "-o" "foo.dir{{[/\\]+}}a.obj" 63 64 // RUN: %clang_cl /c /ofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAMEEXT1 %s 65 // oDIRNAMEEXT1: "-o" "foo.dir{{[/\\]+}}a.ext" 66 67 // RUN: %clang_cl /c /o foo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=oDIRNAMEEXT2 %s 68 // oDIRNAMEEXT2: "-o" "foo.dir{{[/\\]+}}a.ext" 69 70 // RUN: %clang_cl /c /o.. -### -- %s 2>&1 | FileCheck -check-prefix=oCRAZY1 %s 71 // oCRAZY1: "-o" "..obj" 72 73 // RUN: %clang_cl /c /o .. -### -- %s 2>&1 | FileCheck -check-prefix=oCRAZY2 %s 74 // oCRAZY2: "-o" "..obj" 75 76 // RUN: not %clang_cl /c %s -### /o 2>&1 | FileCheck -check-prefix=oMISSINGARG %s 77 // 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 %s 80 // CHECK-oMULTIPLESOURCEOK1: "-o" "mydir{{[/\\]+}}cl-outputs.obj" 81 82 // RUN: %clang_cl /c /o mydir/ -### -- %s %s 2>&1 | FileCheck -check-prefix=CHECK-oMULTIPLESOURCEOK2 %s 83 // CHECK-oMULTIPLESOURCEOK2: "-o" "mydir{{[/\\]+}}cl-outputs.obj" 84 85 // RUN: %clang_cl -emit-ast /otest.ast -### -- %s 2>&1 | FileCheck -check-prefix=oASTNAME %s 86 // oASTNAME: "-o" "test.ast" 87 88 // RUN: %clang_cl --analyze /otest.plist -### -- %s 2>&1 | FileCheck -check-prefix=oPLIST %s 89 // oPLIST: "-o" "test.plist" 90 91 // RUN: %clang_cl /c /obar /Fofoo -### -- %s 2>&1 | FileCheck -check-prefix=FooRACE1 %s 92 // FooRACE1: "-o" "foo.obj" 93 94 // RUN: %clang_cl /c /Fofoo /obar -### -- %s 2>&1 | FileCheck -check-prefix=FooRACE2 %s 95 // FooRACE2: "-o" "bar.obj" 96 97 98 // RUN: %clang_cl -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTEXE %s 99 // DEFAULTEXE: cl-outputs.exe 100 101 // RUN: %clang_cl /LD -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTDLL %s 102 // RUN: %clang_cl /LDd -### -- %s 2>&1 | FileCheck -check-prefix=DEFAULTDLL %s 103 // DEFAULTDLL: "-out:cl-outputs.dll" 104 // DEFAULTDLL: "-implib:cl-outputs.lib" 105 106 // RUN: %clang_cl /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s 107 // RUN: %clang_cl /Fe:foo -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXT %s 108 // FeNOEXT: "-out:foo.exe" 109 110 // RUN: %clang_cl /Fe -### -- %s 2>&1 | FileCheck -check-prefix=FeEMPTY %s 111 // FeEMPTY-NOT: argument to '/Fe' is missing 112 // FeEMPTY: "-out:cl-outputs.exe" 113 114 // RUN: %clang_cl /Fefoo /LD -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXTDLL %s 115 // RUN: %clang_cl /Fefoo /LDd -### -- %s 2>&1 | FileCheck -check-prefix=FeNOEXTDLL %s 116 // FeNOEXTDLL: "-out:foo.dll" 117 // FeNOEXTDLL: "-implib:foo.lib" 118 119 // RUN: %clang_cl /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s 120 // RUN: %clang_cl /Fe:foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s 121 // RUN: %clang_cl /Fe: foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXT %s 122 // FeEXT: "-out:foo.ext" 123 124 // RUN: %clang_cl /LD /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s 125 // RUN: %clang_cl /LDd /Fefoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeEXTDLL %s 126 // FeEXTDLL: "-out:foo.ext" 127 // FeEXTDLL: "-implib:foo.lib" 128 129 // RUN: %clang_cl /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIR %s 130 // FeDIR: "-out:foo.dir{{[/\\]+}}cl-outputs.exe" 131 132 // RUN: %clang_cl /LD /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRDLL %s 133 // RUN: %clang_cl /LDd /Fefoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRDLL %s 134 // 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 %s 138 // FeDIRNAME: "-out:foo.dir{{[/\\]+}}a.exe" 139 140 // RUN: %clang_cl /LD /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEDLL %s 141 // RUN: %clang_cl /LDd /Fefoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEDLL %s 142 // 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 %s 146 // FeDIRNAMEEXT: "-out:foo.dir{{[/\\]+}}a.ext" 147 148 // RUN: %clang_cl /LD /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXTDLL %s 149 // RUN: %clang_cl /LDd /Fefoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeDIRNAMEEXTDLL %s 150 // 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 %s 154 // FeOVERRIDE: "-out:bar.exe" 155 156 157 // RUN: %clang_cl /obar /Fefoo -### -- %s 2>&1 | FileCheck -check-prefix=FeoRACE1 %s 158 // FeoRACE1: "-out:foo.exe" 159 160 // RUN: %clang_cl /Fefoo /obar -### -- %s 2>&1 | FileCheck -check-prefix=FeoRACE2 %s 161 // FeoRACE2: "-out:bar.exe" 162 163 164 // RUN: %clang_cl /ofoo -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXT1 %s 165 // FeoNOEXT1: "-out:foo.exe" 166 167 // RUN: %clang_cl /o foo -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXT2 %s 168 // FeoNOEXT2: "-out:foo.exe" 169 170 // RUN: %clang_cl /o foo /LD -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXTDLL %s 171 // RUN: %clang_cl /ofoo /LDd -### -- %s 2>&1 | FileCheck -check-prefix=FeoNOEXTDLL %s 172 // FeoNOEXTDLL: "-out:foo.dll" 173 // FeoNOEXTDLL: "-implib:foo.lib" 174 175 // RUN: %clang_cl /ofoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXT1 %s 176 // FeoEXT1: "-out:foo.ext" 177 178 // RUN: %clang_cl /o foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXT2 %s 179 // FeoEXT2: "-out:foo.ext" 180 181 // RUN: %clang_cl /LD /o foo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXTDLL %s 182 // RUN: %clang_cl /LDd /ofoo.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoEXTDLL %s 183 // FeoEXTDLL: "-out:foo.ext" 184 // FeoEXTDLL: "-implib:foo.lib" 185 186 // RUN: %clang_cl /ofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIR1 %s 187 // FeoDIR1: "-out:foo.dir{{[/\\]+}}cl-outputs.exe" 188 189 // RUN: %clang_cl /o foo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIR2 %s 190 // FeoDIR2: "-out:foo.dir{{[/\\]+}}cl-outputs.exe" 191 192 // RUN: %clang_cl /LD /o foo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRDLL %s 193 // RUN: %clang_cl /LDd /ofoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRDLL %s 194 // 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 %s 198 // FeoDIRNAME1: "-out:foo.dir{{[/\\]+}}a.exe" 199 200 // RUN: %clang_cl /o foo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAME2 %s 201 // FeoDIRNAME2: "-out:foo.dir{{[/\\]+}}a.exe" 202 203 // RUN: %clang_cl /LD /o foo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEDLL %s 204 // RUN: %clang_cl /LDd /ofoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEDLL %s 205 // 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 %s 209 // FeoDIRNAMEEXT1: "-out:foo.dir{{[/\\]+}}a.ext" 210 211 // RUN: %clang_cl /o foo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXT2 %s 212 // FeoDIRNAMEEXT2: "-out:foo.dir{{[/\\]+}}a.ext" 213 214 // RUN: %clang_cl /LD /o foo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXTDLL %s 215 // RUN: %clang_cl /LDd /ofoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FeoDIRNAMEEXTDLL %s 216 // 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 %s 220 // 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 %s 223 // FeoOVERRIDE: "-out:bar.exe" 224 225 226 // RUN: %clang_cl /FA -### -- %s 2>&1 | FileCheck -check-prefix=FA %s 227 // FA: "-o" "cl-outputs.asm" 228 // RUN: %clang_cl /FA /Fa -### -- %s 2>&1 | FileCheck -check-prefix=FaEMPTY %s 229 // FaEMPTY: "-o" "cl-outputs.asm" 230 // RUN: %clang_cl /FA /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FaNAME %s 231 // RUN: %clang_cl /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FaNAME %s 232 // FaNAME: "-o" "foo.asm" 233 // RUN: %clang_cl /FA /Faa.ext /Fab.ext -### -- %s 2>&1 | FileCheck -check-prefix=FaNAMEEXT %s 234 // FaNAMEEXT: "-o" "b.ext" 235 // RUN: %clang_cl /FA /Fafoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FaDIR %s 236 // FaDIR: "-o" "foo.dir{{[/\\]+}}cl-outputs.asm" 237 // RUN: %clang_cl /FA /Fafoo.dir/a -### -- %s 2>&1 | FileCheck -check-prefix=FaDIRNAME %s 238 // FaDIRNAME: "-o" "foo.dir{{[/\\]+}}a.asm" 239 // RUN: %clang_cl /FA /Fafoo.dir/a.ext -### -- %s 2>&1 | FileCheck -check-prefix=FaDIRNAMEEXT %s 240 // FaDIRNAMEEXT: "-o" "foo.dir{{[/\\]+}}a.ext" 241 // RUN: not %clang_cl /Faa.asm -### -- %s %s 2>&1 | FileCheck -check-prefix=FaMULTIPLESOURCE %s 242 // FaMULTIPLESOURCE: error: cannot specify '/Faa.asm' when compiling multiple source files 243 // RUN: %clang_cl /Fa -### -- %s %s 2>&1 | FileCheck -check-prefix=FaMULTIPLESOURCEOK %s 244 // FaMULTIPLESOURCEOK: "-o" "cl-outputs.asm" 245 // FaMULTIPLESOURCEOK: "-o" "cl-outputs.asm" 246 247 // Copy of the same tests above, but with /FAcsu 248 // RUN: %clang_cl /FAcsu -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU %s 249 // FA_CSU: "-o" "cl-outputs.asm" 250 // RUN: %clang_cl /FAcsu /Fa -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaEMPTY %s 251 // FA_CSU_FaEMPTY: "-o" "cl-outputs.asm" 252 // RUN: %clang_cl /FAcsu /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaNAME %s 253 // RUN: %clang_cl /Fafoo -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaNAME %s 254 // FA_CSU_FaNAME: "-o" "foo.asm" 255 // RUN: %clang_cl /FAcsu /Faa.ext /Fab.ext -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaNAMEEXT %s 256 // FA_CSU_FaNAMEEXT: "-o" "b.ext" 257 // RUN: %clang_cl /FAcsu /Fafoo.dir/ -### -- %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaDIR %s 258 // 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 %s 260 // 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 %s 262 // 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 %s 264 // FA_CSU_FaMULTIPLESOURCE: error: cannot specify '/Faa.asm' when compiling multiple source files 265 // RUN: %clang_cl /Fa -### -- %s %s 2>&1 | FileCheck -check-prefix=FA_CSU_FaMULTIPLESOURCEOK %s 266 // 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 %s 270 // P: "-E" 271 // P: "-o" "cl-outputs.i" 272 273 // RUN: %clang_cl /P /Fifoo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s 274 // RUN: %clang_cl /P /Fi:foo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s 275 // RUN: %clang_cl /P /Fi: foo -### -- %s 2>&1 | FileCheck -check-prefix=Fi1 %s 276 // Fi1: "-E" 277 // Fi1: "-o" "foo.i" 278 279 // RUN: %clang_cl /P /Fifoo.x -### -- %s 2>&1 | FileCheck -check-prefix=Fi2 %s 280 // 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 %s 286 // Fio1: "-E" 287 // Fio1: "-o" "cl-outputs.i" 288 289 // RUN: %clang_cl /P /o foo.x -### -- %s 2>&1 | FileCheck -check-prefix=Fio2 %s 290 // 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 %s 294 // FioRACE1: "-E" 295 // FioRACE1: "-o" "foo.x" 296 297 // RUN: %clang_cl /P /Fifoo.x /obar.x -### -- %s 2>&1 | FileCheck -check-prefix=FioRACE2 %s 298 // 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 %s 302 // 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 %s 305 // 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 %s 308 // RUN: %clang_cl -target x86_64-windows -fdebug-compilation-dir=. /Z7 /Fo: a.obj -### -- %s 2>&1 | FileCheck -check-prefix=RELATIVE_OBJPATH1_COLON %s 309 // 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 %s 312 // RELATIVE_OBJPATH2: "-object-file-name=foo\\a.obj" 313