-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:
parent
e41d2d3b22
commit
fec2519b4b
|
@ -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
|
|
@ -27,5 +27,3 @@ void test3(int i) {
|
|||
|
||||
int test4 = 0LL; /* expected-warning {{long long}} */
|
||||
|
||||
#if 1LL /* expected-warning {{long long}} */
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue