зеркало из https://github.com/microsoft/clang-1.git
-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:
Родитель
f01654f98d
Коммит
054fad5a89
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче