aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2003-06-01-NullPointerType.ll')
-rw-r--r--test/CodeGen/CBackend/2003-06-01-NullPointerType.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll b/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll
new file mode 100644
index 0000000000000..6b7f9f0d378a3
--- /dev/null
+++ b/test/CodeGen/CBackend/2003-06-01-NullPointerType.ll
@@ -0,0 +1,9 @@
+; RUN: llvm-as < %s | llc -march=c
+
+%X = type { i32, float }
+
+define void @test() {
+ getelementptr %X* null, i64 0, i32 1 ; <float*>:1 [#uses=0]
+ ret void
+}
+