xref: /aosp_15_r20/external/llvm/test/Verifier/gcroot-alloca.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s >& /dev/null
2*9880d681SAndroid Build Coastguard Worker; PR1633
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker%meta = type { i8* }
5*9880d681SAndroid Build Coastguard Worker%obj = type { %meta* }
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdeclare void @llvm.gcroot(%obj**, %meta*)
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @f() {
10*9880d681SAndroid Build Coastguard Workerentry:
11*9880d681SAndroid Build Coastguard Worker	call void @llvm.gcroot(%obj** null, %meta* null)
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker	ret void
14*9880d681SAndroid Build Coastguard Worker}
15