diff options
Diffstat (limited to 'test/Verifier/gcroot-alloca.ll')
-rw-r--r-- | test/Verifier/gcroot-alloca.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Verifier/gcroot-alloca.ll b/test/Verifier/gcroot-alloca.ll new file mode 100644 index 0000000..8caa4b9 --- /dev/null +++ b/test/Verifier/gcroot-alloca.ll @@ -0,0 +1,14 @@ +; RUN: not llvm-as < %s >& /dev/null +; PR1633 + +%meta = type { i8* } +%obj = type { %meta* } + +declare void @llvm.gcroot(%obj**, %meta*) + +define void @f() { +entry: + call void @llvm.gcroot(%obj** null, %meta* null) + + ret void +} |