summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-16 23:44:05 +0000
committerChris Lattner <sabre@nondot.org>2010-04-16 23:44:05 +0000
commit1cf5bdd03d7e1a77818dda4c4dea8f33a6f2e006 (patch)
tree4a320d1c9d46d03fc733606815a49ee48be6ecb6 /clang/test/Preprocessor
parent7258dcd77f19bf5adb5f76d4c2bb5fc426ba75c2 (diff)
downloadbcm5719-llvm-1cf5bdd03d7e1a77818dda4c4dea8f33a6f2e006.tar.gz
bcm5719-llvm-1cf5bdd03d7e1a77818dda4c4dea8f33a6f2e006.zip
emit warn_char_constant_too_large at most once per literal, fixing PR6852
llvm-svn: 101580
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r--clang/test/Preprocessor/if_warning.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/if_warning.c b/clang/test/Preprocessor/if_warning.c
index 98653a8feef..345ac95eb4b 100644
--- a/clang/test/Preprocessor/if_warning.c
+++ b/clang/test/Preprocessor/if_warning.c
@@ -19,3 +19,9 @@ extern int x;
#else 1 // Should not warn due to C99 6.10p4
#endif
#endif
+
+
+// PR6852
+#if 'somesillylongthing' // expected-warning {{character constant too long for its type}} \
+ // expected-warning {{multi-character character constant}}
+#endif
OpenPOWER on IntegriCloud