diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/staticinit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/staticinit.c b/test/CodeGen/staticinit.c index 50c837a1c2..196d931f64 100644 --- a/test/CodeGen/staticinit.c +++ b/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])}; +} |