summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/Regression/CFrontend/2003-11-01-EmptyStructCrash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Regression/CFrontend/2003-11-01-EmptyStructCrash.c b/llvm/test/Regression/CFrontend/2003-11-01-EmptyStructCrash.c
new file mode 100644
index 00000000000..d65b3280f0d
--- /dev/null
+++ b/llvm/test/Regression/CFrontend/2003-11-01-EmptyStructCrash.c
@@ -0,0 +1,4 @@
+typedef struct { } the_coolest_struct_in_the_world;
+extern the_coolest_struct_in_the_world xyzzy;
+void *foo() { return &xyzzy; }
+
OpenPOWER on IntegriCloud