xref: /aosp_15_r20/external/llvm/test/Verifier/alloc-size-failedparse.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker;
3*9880d681SAndroid Build Coastguard Worker; We handle allocsize with identical args in the parser, rather than the
4*9880d681SAndroid Build Coastguard Worker; verifier. So, a seperate test is needed.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK: 'allocsize' indices can't refer to the same parameter
7*9880d681SAndroid Build Coastguard Workerdeclare i8* @a(i32, i32) allocsize(0, 0)
8