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

Test this the hard way.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-08-30 06:38:49 +00:00
Родитель f01654f98d
Коммит 054fad5a89
2 изменённых файлов: 7 добавлений и 2 удалений

7
test/Sema/c89-2.c Normal 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

Просмотреть файл

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