aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-09-01 02:00:51 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-09-01 02:00:51 +0000
commit4e9c473c4d9e0e93da67d6a0e20227e5a1e16543 (patch)
tree6dee4698affb94b4ac5b849f0723c80fd0c8aeea /test
parente15c2db9935eee66a8008f1bd09882aff2ed3aae (diff)
downloadexternal_llvm-4e9c473c4d9e0e93da67d6a0e20227e5a1e16543.zip
external_llvm-4e9c473c4d9e0e93da67d6a0e20227e5a1e16543.tar.gz
external_llvm-4e9c473c4d9e0e93da67d6a0e20227e5a1e16543.tar.bz2
Fix a gcroot lowering bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Generic/GC/lower_gcroot.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/GC/lower_gcroot.ll b/test/CodeGen/Generic/GC/lower_gcroot.ll
new file mode 100644
index 0000000..3a3abac
--- /dev/null
+++ b/test/CodeGen/Generic/GC/lower_gcroot.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc
+
+ %Env = type opaque*
+
+define void @.main(%Env) {
+ call void @llvm.gcroot( %Env* null, %Env null )
+ unreachable
+}
+
+declare void @llvm.gcroot(%Env*, %Env)