xref: /aosp_15_r20/external/llvm/test/Verifier/2006-10-15-AddrLabel.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s > /dev/null 2> %t
2*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck %s --input-file=%t
3*9880d681SAndroid Build Coastguard Worker; CHECK: basic block pointers are invalid
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine i32 @main() {
6*9880d681SAndroid Build Coastguard Worker         %foo  = call i8* %llvm.stacksave()
7*9880d681SAndroid Build Coastguard Worker         %foop = bitcast i8* %foo to label*
8*9880d681SAndroid Build Coastguard Worker         %nret = load label, label* %foop
9*9880d681SAndroid Build Coastguard Worker         br label %nret
10*9880d681SAndroid Build Coastguard Worker}
11