From 1cf5bdd03d7e1a77818dda4c4dea8f33a6f2e006 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Apr 2010 23:44:05 +0000 Subject: emit warn_char_constant_too_large at most once per literal, fixing PR6852 llvm-svn: 101580 --- clang/test/Preprocessor/if_warning.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clang/test/Preprocessor') 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 -- cgit v1.2.3