[cfe-commits] r41605 - in /cfe/trunk/test/Sema: c89-2.c c89.c
Chris Lattner
sabre at nondot.org
Wed Aug 29 23:38:49 PDT 2007
Author: lattner
Date: Thu Aug 30 01:38:49 2007
New Revision: 41605
URL: http://llvm.org/viewvc/llvm-project?rev=41605&view=rev
Log:
-C mode doesn't return comments on "#" lines, so the diag checker doesn't pick them up.
Test this the hard way.
Added:
cfe/trunk/test/Sema/c89-2.c
Modified:
cfe/trunk/test/Sema/c89.c
Added: cfe/trunk/test/Sema/c89-2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/c89-2.c?rev=41605&view=auto
==============================================================================
--- cfe/trunk/test/Sema/c89-2.c (added)
+++ cfe/trunk/test/Sema/c89-2.c Thu Aug 30 01:38:49 2007
@@ -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
Modified: cfe/trunk/test/Sema/c89.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/c89.c?rev=41605&r1=41604&r2=41605&view=diff
==============================================================================
--- cfe/trunk/test/Sema/c89.c (original)
+++ cfe/trunk/test/Sema/c89.c Thu Aug 30 01:38:49 2007
@@ -27,5 +27,3 @@
int test4 = 0LL; /* expected-warning {{long long}} */
-#if 1LL /* expected-warning {{long long}} */
-#endif
More information about the cfe-commits
mailing list