Fix assert assembling zero-argument constant GEP.
[oota-llvm.git] / test / Assembler / 2009-07-24-ZeroArgGEP.ll
diff --git a/test/Assembler/2009-07-24-ZeroArgGEP.ll b/test/Assembler/2009-07-24-ZeroArgGEP.ll
new file mode 100644 (file)
index 0000000..ce4a961
--- /dev/null
@@ -0,0 +1,5 @@
+; RUN: llvm-as %s -o /dev/null -f
+
+@foo = global i32 0
+@bar = constant i32* getelementptr(i32* @foo)
+