[cfe-commits] r50610 - /cfe/trunk/test/Sema/init.c
Chris Lattner
sabre at nondot.org
Sat May 3 18:13:36 PDT 2008
Author: lattner
Date: Sat May 3 20:13:36 2008
New Revision: 50610
URL: http://llvm.org/viewvc/llvm-project?rev=50610&view=rev
Log:
add testcase for pr2050 which is now fixed.
Modified:
cfe/trunk/test/Sema/init.c
Modified: cfe/trunk/test/Sema/init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/init.c?rev=50610&r1=50609&r2=50610&view=diff
==============================================================================
--- cfe/trunk/test/Sema/init.c (original)
+++ cfe/trunk/test/Sema/init.c Sat May 3 20:13:36 2008
@@ -17,3 +17,16 @@
int a[10];
int b[10] = a; // expected-error {{initialization with "{...}" expected}}
}
+
+
+// PR2050
+struct cdiff_cmd {
+ const char *name;
+ unsigned short argc;
+ int (*handler)();
+};
+int cdiff_cmd_open();
+struct cdiff_cmd commands[] = {
+ {"OPEN", 1, &cdiff_cmd_open }
+};
+
More information about the cfe-commits
mailing list