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