summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/staticinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/staticinit.c')
-rw-r--r--clang/test/CodeGen/staticinit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/staticinit.c b/clang/test/CodeGen/staticinit.c
index 50c837a1c2f..196d931f64a 100644
--- a/clang/test/CodeGen/staticinit.c
+++ b/clang/test/CodeGen/staticinit.c
@@ -18,3 +18,9 @@ void g() {
static char a[10];
static char *b = a;
}
+
+struct s { void *p; };
+
+void foo(void) {
+ static struct s var = {((void*)&((char*)0)[0])};
+}
OpenPOWER on IntegriCloud