xref: /aosp_15_r20/external/llvm/test/Verifier/gcroot-ptrptr.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	%local.obj = alloca %obj
12*9880d681SAndroid Build Coastguard Worker	call void @llvm.gcroot(%obj* %local.obj, %meta* null)
13*9880d681SAndroid Build Coastguard Worker	ret void
14*9880d681SAndroid Build Coastguard Worker}
15