2007-12-11 23:50:23 +08:00
|
|
|
; RUN: not llvm-as < %s > /dev/null |& \
|
2007-04-15 18:26:05 +08:00
|
|
|
; RUN: grep {Cannot form a pointer to a basic block}
|
2006-10-16 07:26:28 +08:00
|
|
|
|
2007-01-26 16:25:06 +08:00
|
|
|
define i32 @main() {
|
|
|
|
%foo = call i8* %llvm.stacksave()
|
|
|
|
%foop = bitcast i8* %foo to label*
|
2006-10-16 07:26:28 +08:00
|
|
|
%nret = load label* %foop
|
|
|
|
br label %nret;
|
|
|
|
}
|