| 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 |
// ON-NOT: "-gno-codview-commandline" |
| 5 |
// OFF: "-gno-codeview-command-line" |
| 6 |
|
| 7 |
// default |
| 8 |
// RUN: %clang_cl -target x86_64-windows /Z7 -### -- %s 2>&1 | FileCheck -check-prefix=ON %s |
| 9 |
// enabled |
| 10 |
// RUN: %clang_cl -target x86_64-windows /Z7 -gno-codeview-command-line -gcodeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=ON %s |
| 11 |
// disabled |
| 12 |
// RUN: %clang_cl -target x86_64-windows /Z7 -gcodeview-command-line -gno-codeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=OFF %s |
| 13 |
|
| 14 |
// enabled, no /Z7 |
| 15 |
// RUN: %clang_cl -target x86_64-windows -gcodeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=ON %s |
| 16 |
|
| 17 |
// GCC-style driver |
| 18 |
// RUN: %clang -target x86_64-windows -g -gcodeview -gno-codeview-command-line -gcodeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=ON %s |
| 19 |
// RUN: %clang -target x86_64-windows -g -gcodeview -gcodeview-command-line -gno-codeview-command-line -### -- %s 2>&1 | FileCheck -check-prefix=OFF %s |