blob: 0b73b47893c5845ef5022585ba542973fd4a8e6d [file] [log] [blame]
Chris Lattner103ff152009-01-02 07:01:27 +00001; RUN: not llvm-as < %s > /dev/null |& grep {basic block pointers are invalid}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
3define i32 @main() {
4 %foo = call i8* %llvm.stacksave()
5 %foop = bitcast i8* %foo to label*
6 %nret = load label* %foop
Dan Gohman81bc62c2010-01-05 17:55:26 +00007 br label %nret
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008}