xref: /aosp_15_r20/external/llvm/test/Assembler/missing-tbaa.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; Check that !tbaa upgrade doesn't crash on undefined metadata (it should give
3*9880d681SAndroid Build Coastguard Worker; an error).
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker  store i8 undef, i8* undef,
8*9880d681SAndroid Build Coastguard Worker; CHECK: :[[@LINE+1]]:10: error: use of undefined metadata '!1'
9*9880d681SAndroid Build Coastguard Worker  !tbaa !1
10*9880d681SAndroid Build Coastguard Worker  unreachable
11*9880d681SAndroid Build Coastguard Worker}
12