summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-15 07:05:12 +0000
committerChris Lattner <sabre@nondot.org>2009-04-15 07:05:12 +0000
commitf5f049b548ee41f949413679fbee856beb3c660e (patch)
tree73d1940e1bc3d1ee9e0618c0511802165a5fb207
parent5ea5dc8a3aae43f2f36dfed90d7f1f53ffef854c (diff)
downloadbcm5719-llvm-f5f049b548ee41f949413679fbee856beb3c660e.tar.gz
bcm5719-llvm-f5f049b548ee41f949413679fbee856beb3c660e.zip
add another sanity check for -Werror=xx
llvm-svn: 69157
-rw-r--r--clang/test/Misc/diag-mapping.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Misc/diag-mapping.c b/clang/test/Misc/diag-mapping.c
index 73a36ee3caa..dc07e0d092b 100644
--- a/clang/test/Misc/diag-mapping.c
+++ b/clang/test/Misc/diag-mapping.c
@@ -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:" &&
OpenPOWER on IntegriCloud