2012-07-02 20:23:19 +08:00
|
|
|
; RUN: not llvm-as < %s > /dev/null 2> %t
|
2013-04-09 02:33:51 +08:00
|
|
|
; RUN: FileCheck %s --input-file=%t
|
|
|
|
; CHECK: basic block pointers are invalid
|
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*
|
2015-02-28 05:17:42 +08:00
|
|
|
%nret = load label, label* %foop
|
2010-01-06 01:55:26 +08:00
|
|
|
br label %nret
|
2006-10-16 07:26:28 +08:00
|
|
|
}
|