aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2004-08-09-va-end-null.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2004-08-09-va-end-null.ll')
-rw-r--r--test/CodeGen/CBackend/2004-08-09-va-end-null.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/CBackend/2004-08-09-va-end-null.ll b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll
new file mode 100644
index 0000000..3ee23d1
--- /dev/null
+++ b/test/CodeGen/CBackend/2004-08-09-va-end-null.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=c
+
+declare void @llvm.va_end(i8*)
+
+define void @test() {
+ %va.upgrd.1 = bitcast i8* null to i8* ; <i8*> [#uses=1]
+ call void @llvm.va_end( i8* %va.upgrd.1 )
+ ret void
+}
+