aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/init.c')
-rw-r--r--clang/test/Sema/init.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/clang/test/Sema/init.c b/clang/test/Sema/init.c
deleted file mode 100644
index 9085dbc..0000000
--- a/clang/test/Sema/init.c
+++ /dev/null
@@ -1,32 +0,0 @@
-// RUN: clang %s -verify -fsyntax-only
-
-typedef void (* fp)(void);
-void foo(void);
-fp a[1] = { foo };
-
-int myArray[5] = {1, 2, 3, 4, 5};
-int *myPointer2 = myArray;
-int *myPointer = &(myArray[2]);
-
-
-extern int x;
-void *g = &x;
-int *h = &x;
-
-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 }
-};
-