diff options
Diffstat (limited to 'clang')
-rw-r--r-- | clang/test/Sema/init.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/Sema/init.c b/clang/test/Sema/init.c index 9d0d7335fe2..9085dbcf0dc 100644 --- a/clang/test/Sema/init.c +++ b/clang/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 } +}; + |