diff options
Diffstat (limited to 'test/Verifier/2006-10-15-AddrLabel.ll')
-rw-r--r-- | test/Verifier/2006-10-15-AddrLabel.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Verifier/2006-10-15-AddrLabel.ll b/test/Verifier/2006-10-15-AddrLabel.ll new file mode 100644 index 00000000000..c8fedb5f195 --- /dev/null +++ b/test/Verifier/2006-10-15-AddrLabel.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as < %s > /dev/null 2> %t +; RUN: grep "basic block pointers are invalid" %t + +define i32 @main() { + %foo = call i8* %llvm.stacksave() + %foop = bitcast i8* %foo to label* + %nret = load label* %foop + br label %nret +} |