diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-09-29 01:58:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-09-29 01:58:05 +0000 |
commit | 58d0af6c5feec32c5033f6241225d7306edb6bc2 (patch) | |
tree | 77dea18008fb3861a96bdb3623b1f8f3ae7ae385 /clang/test/Frontend/warning-mapping-4.c | |
parent | 168dfffdb86741817f0e1476851cc0f0c6485cf6 (diff) | |
download | bcm5719-llvm-58d0af6c5feec32c5033f6241225d7306edb6bc2.tar.gz bcm5719-llvm-58d0af6c5feec32c5033f6241225d7306edb6bc2.zip |
Basic/Diagnostics: Rewrite DiagnosticIDs::getDiagnosticLevel completely to be straighter line code, use the new DiagnosticMappingInfo flags, and eliminate the odd MAP_WARNING_NO_WERROR and friend mappings.
- This fixes a host of obscure bugs with regards to how warning mapping options composed with one another, and I believe makes the code substantially easier to read and reason about.
llvm-svn: 140770
Diffstat (limited to 'clang/test/Frontend/warning-mapping-4.c')
-rw-r--r-- | clang/test/Frontend/warning-mapping-4.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Frontend/warning-mapping-4.c b/clang/test/Frontend/warning-mapping-4.c new file mode 100644 index 00000000000..d8d2769fc53 --- /dev/null +++ b/clang/test/Frontend/warning-mapping-4.c @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -verify -Wno-error=sign-compare %s +// RUN: %clang_cc1 -verify -Wsign-compare -w -Wno-error=sign-compare %s + +int f0(int x, unsigned y) { + return x < y; +} |