From: Chris Lattner Date: Wed, 15 Apr 2009 07:05:12 +0000 (+0000) Subject: add another sanity check for -Werror=xx X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fbbfcfea8279ed1d965d0950018ddc2d92f80a3;p=clang add another sanity check for -Werror=xx git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69157 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Misc/diag-mapping.c b/test/Misc/diag-mapping.c index 73a36ee3ca..dc07e0d092 100644 --- a/test/Misc/diag-mapping.c +++ b/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:" &&