]> granicus.if.org Git - clang/commitdiff
add testcase for pr2050 which is now fixed.
authorChris Lattner <sabre@nondot.org>
Sun, 4 May 2008 01:13:36 +0000 (01:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 4 May 2008 01:13:36 +0000 (01:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50610 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/init.c

index 9d0d7335fe2d3c5e5bfe45f58791d03317f7d809..9085dbcf0dcd84383ab98319c8700a4b66aab4c7 100644 (file)
@@ -17,3 +17,16 @@ int test() {
 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 }
+};
+