From 3fbbfcfea8279ed1d965d0950018ddc2d92f80a3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 15 Apr 2009 07:05:12 +0000 Subject: [PATCH] add another sanity check for -Werror=xx git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69157 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Misc/diag-mapping.c | 3 +++ 1 file changed, 3 insertions(+) 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:" && -- 2.50.1