add testcase for pr2050 which is now fixed.

llvm-svn: 50610
This commit is contained in:
Chris Lattner 2008-05-04 01:13:36 +00:00
parent c8cb4ca202
commit cfcabaeb7f
1 changed files with 13 additions and 0 deletions

View 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 }
};