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