summaryrefslogtreecommitdiff
path: root/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll')
-rw-r--r--test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll b/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll
new file mode 100644
index 000000000000..e04890519d9e
--- /dev/null
+++ b/test/CodeGen/CBackend/2002-08-30-StructureOrderingTest.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=c
+
+; This testcase fails because the C backend does not arrange to output the
+; contents of a structure type before it outputs the structure type itself.
+
+@Y = external global { { i32 } } ; <{ { i32 } }*> [#uses=0]
+@X = external global { float } ; <{ float }*> [#uses=0]
+