diff options
Diffstat (limited to 'test/Driver/warning-options.cpp')
-rw-r--r-- | test/Driver/warning-options.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Driver/warning-options.cpp b/test/Driver/warning-options.cpp index ce434ab006..02b3e1c225 100644 --- a/test/Driver/warning-options.cpp +++ b/test/Driver/warning-options.cpp @@ -8,3 +8,8 @@ // CHECK: unknown warning option '-Wmonkey' // CHECK: unknown warning option '-Wno-monkey' // CHECK: unknown warning option '-Wno-unused-command-line-arguments'; did you mean '-Wno-unused-command-line-argument'? + +// RUN: %clang -### -pedantic -no-pedantic %s 2>&1 | FileCheck -check-prefix=NO_PEDANTIC %s +// NO_PEDANTIC-NOT: -pedantic +// RUN: %clang -### -pedantic -pedantic -no-pedantic -pedantic %s 2>&1 | FileCheck -check-prefix=PEDANTIC %s +// PEDANTIC: -pedantic |