-C mode doesn't return comments on "#" lines, so the diag checker doesn't pick them up.

Test this the hard way.

llvm-svn: 41605
This commit is contained in:
Chris Lattner 2007-08-30 06:38:49 +00:00
parent e41d2d3b22
commit fec2519b4b
2 changed files with 7 additions and 2 deletions

7
clang/test/Sema/c89-2.c Normal file
View File

@ -0,0 +1,7 @@
/* RUN: not clang %s -std=c89 -pedantic-errors
*/
/* We can't put expected-warning lines on #if lines. */
#if 1LL /* expected-warning {{long long}} */
#endif

View File

@ -27,5 +27,3 @@ void test3(int i) {
int test4 = 0LL; /* expected-warning {{long long}} */
#if 1LL /* expected-warning {{long long}} */
#endif