From: Chris Lattner Date: Sun, 4 May 2008 01:13:36 +0000 (+0000) Subject: add testcase for pr2050 which is now fixed. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be34ac67225fc4af6134c7f3507c777cceeec867;p=clang add testcase for pr2050 which is now fixed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50610 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Sema/init.c b/test/Sema/init.c index 9d0d7335fe..9085dbcf0d 100644 --- a/test/Sema/init.c +++ b/test/Sema/init.c @@ -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 } +}; +