diff options
Diffstat (limited to 'llvm/test/CFrontend/2003-11-01-EmptyStructCrash.c')
-rw-r--r-- | llvm/test/CFrontend/2003-11-01-EmptyStructCrash.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CFrontend/2003-11-01-EmptyStructCrash.c b/llvm/test/CFrontend/2003-11-01-EmptyStructCrash.c new file mode 100644 index 00000000000..fb6993bb209 --- /dev/null +++ b/llvm/test/CFrontend/2003-11-01-EmptyStructCrash.c @@ -0,0 +1,6 @@ +// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null + +typedef struct { } the_coolest_struct_in_the_world; +extern the_coolest_struct_in_the_world xyzzy; +void *foo() { return &xyzzy; } + |