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 | be1aa410274b28fc143c47c814f07c989f4534d6 (patch) | |
tree | d4072fb4fe99287726865253e3f65492fd8d2ed1 /test/Frontend/warning-mapping-4.c | |
parent | a5e41333b06fdf036d58495490eb14d6a0a3fcf7 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Frontend/warning-mapping-4.c')
-rw-r--r-- | test/Frontend/warning-mapping-4.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Frontend/warning-mapping-4.c b/test/Frontend/warning-mapping-4.c new file mode 100644 index 0000000000..d8d2769fc5 --- /dev/null +++ b/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; +} |