summaryrefslogtreecommitdiffstats
path: root/test/CFrontend
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-01 23:42:08 +0000
committerChris Lattner <sabre@nondot.org>2003-11-01 23:42:08 +0000
commite5245894878c55784af761262ac0f69d657180be (patch)
tree636fadf672cf740dc7027225d2eb20d5e7c2d8f2 /test/CFrontend
parent1926f69c53e4581ad10ba2e12eb2bbd21e4c06ef (diff)
downloadexternal_llvm-e5245894878c55784af761262ac0f69d657180be.zip
external_llvm-e5245894878c55784af761262ac0f69d657180be.tar.gz
external_llvm-e5245894878c55784af761262ac0f69d657180be.tar.bz2
Regression test for PR 80
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CFrontend')
-rw-r--r--test/CFrontend/2003-11-01-EmptyStructCrash.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CFrontend/2003-11-01-EmptyStructCrash.c b/test/CFrontend/2003-11-01-EmptyStructCrash.c
new file mode 100644
index 0000000..d65b328
--- /dev/null
+++ b/test/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; }
+