diff options
-rw-r--r-- | clang/test/Misc/diag-mapping.c | 3 |
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:" && |