129a500b3SArthur Eubanks // Note: %s must be preceded by --, otherwise it may be interpreted as a 229a500b3SArthur Eubanks // command-line option, e.g. on Mac where %s is commonly under /Users. 329a500b3SArthur Eubanks 429a500b3SArthur Eubanks // ON-NOT: "-gno-codview-commandline" 529a500b3SArthur Eubanks // OFF: "-gno-codeview-command-line" 629a500b3SArthur Eubanks 729a500b3SArthur Eubanks // default 8*99b2581aSPhoebe Wang // RUN: %clang_cl -target x86_64-windows /Z7 -### -- %s 2>&1 | FileCheck -check-prefix=ON %s 929a500b3SArthur Eubanks // enabled 10*99b2581aSPhoebe Wang // RUN: %clang_cl -target x86_64-windows /Z7 -gno-codeview-command-line -gcodeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=ON %s 1129a500b3SArthur Eubanks // disabled 12*99b2581aSPhoebe Wang // RUN: %clang_cl -target x86_64-windows /Z7 -gcodeview-command-line -gno-codeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=OFF %s 1329a500b3SArthur Eubanks 1429a500b3SArthur Eubanks // enabled, no /Z7 15*99b2581aSPhoebe Wang // RUN: %clang_cl -target x86_64-windows -gcodeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=ON %s 1629a500b3SArthur Eubanks 1729a500b3SArthur Eubanks // GCC-style driver 18*99b2581aSPhoebe Wang // RUN: %clang -target x86_64-windows -g -gcodeview -gno-codeview-command-line -gcodeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=ON %s 19*99b2581aSPhoebe Wang // RUN: %clang -target x86_64-windows -g -gcodeview -gcodeview-command-line -gno-codeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=OFF %s 20