| 1 | // Make sure we don't match the -NOT lines with the linker invocation. |
| 2 | // Delimiters match the start of the cc1 and the start of the linker lines |
| 3 | // DELIMITERS: {{^ *"}} |
| 4 | |
| 5 | // RUN: %clang -### -pedantic -no-pedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS %s |
| 6 | // RUN: %clang -### -pedantic -Wno-pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC -check-prefix=DELIMITERS %s |
| 7 | // NO_PEDANTIC-NOT: -pedantic |
| 8 | // RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC -check-prefix=DELIMITERS %s |
| 9 | // RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS %s |
| 10 | // PEDANTIC: -pedantic |
| 11 | // REQUIRES: clang-driver |
| 12 | |
| 13 | // DELIMITERS: {{^ *"}} |
| 14 | |