llvm-for-llvmta/test/Verifier/writeonly.ll

14 lines
397 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
declare void @a() readnone writeonly
; CHECK: Attributes {{.*}} are incompatible
declare void @b() readonly writeonly
; CHECK: Attributes {{.*}} are incompatible
declare void @c(i32* readnone writeonly %p)
; CHECK: Attributes {{.*}} are incompatible
declare void @d(i32* readonly writeonly %p)
; CHECK: Attributes {{.*}} are incompatible