xref: /aosp_15_r20/external/llvm/test/Verifier/writeonly.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 Workerdeclare void @a() readnone writeonly
4*9880d681SAndroid Build Coastguard Worker; CHECK: Attributes {{.*}} are incompatible
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdeclare void @b() readonly writeonly
7*9880d681SAndroid Build Coastguard Worker; CHECK: Attributes {{.*}} are incompatible
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdeclare void @c(i32* readnone writeonly %p)
10*9880d681SAndroid Build Coastguard Worker; CHECK: Attributes {{.*}} are incompatible
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Workerdeclare void @d(i32* readonly writeonly %p)
13*9880d681SAndroid Build Coastguard Worker; CHECK: Attributes {{.*}} are incompatible
14