]> granicus.if.org Git - clang/commitdiff
add another sanity check for -Werror=xx
authorChris Lattner <sabre@nondot.org>
Wed, 15 Apr 2009 07:05:12 +0000 (07:05 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 15 Apr 2009 07:05:12 +0000 (07:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69157 91177308-0d34-0410-b5e6-96231b3b80d8

test/Misc/diag-mapping.c

index 73a36ee3caa6380cb5fa9569e9677088ff08c5cc..dc07e0d092b5f3608f68f8bfea496726abdc19a0 100644 (file)
@@ -9,6 +9,9 @@
 // -Werror can map this one warning to error.
 // RUN: clang-cc %s -Werror=extra-tokens 2>&1 | grep "error:" &&
 
+// Mapping unrelated diags to errors doesn't affect this one.
+// RUN: clang-cc %s -Werror=trigraphs 2>&1 | grep "warning:" &&
+
 // This should stay a warning with -pedantic.
 // RUN: clang-cc %s -pedantic 2>&1 | grep "warning:" &&