aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Assembler/2003-05-21-EmptyStructTest.ll4
-rw-r--r--test/Assembler/2003-05-21-MalformedStructCrash.llx3
2 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/2003-05-21-EmptyStructTest.ll b/test/Assembler/2003-05-21-EmptyStructTest.ll
new file mode 100644
index 0000000000..1fdfb03cfd
--- /dev/null
+++ b/test/Assembler/2003-05-21-EmptyStructTest.ll
@@ -0,0 +1,4 @@
+; The old C front-end never generated empty structures, now the new one
+; can. For some reason we never handled them in the parser. Wierd.
+
+%X = global {} {}
diff --git a/test/Assembler/2003-05-21-MalformedStructCrash.llx b/test/Assembler/2003-05-21-MalformedStructCrash.llx
new file mode 100644
index 0000000000..ba2f66149b
--- /dev/null
+++ b/test/Assembler/2003-05-21-MalformedStructCrash.llx
@@ -0,0 +1,3 @@
+; Found by inspection of the code
+
+global {} { int 7, float 1.0, int 7, int 8 }