13 lines · cpp
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 lines3// DELIMITERS: {{^ (\(in-process\)|")}}4 5// RUN: %clang -### -pedantic -no-pedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS %s6// RUN: %clang -### -pedantic -Wno-pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC -check-prefix=DELIMITERS %s7// NO_PEDANTIC-NOT: -pedantic8// RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC -check-prefix=DELIMITERS %s9// RUN: %clang -### -pedantic -pedantic -no-pedantic -Wpedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC -check-prefix=DELIMITERS %s10// PEDANTIC: -pedantic11 12// DELIMITERS: {{^ *"}}13