blob: 0eeaebbc3a88957ff41d4564045d1c68e6a06724 [file] [log] [blame]
Nicolai Haehnleb07f5402016-07-04 08:01:29 +00001; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
2
3declare void @a() readnone writeonly
4; CHECK: Attributes {{.*}} are incompatible
5
6declare void @b() readonly writeonly
7; CHECK: Attributes {{.*}} are incompatible
8
9declare void @c(i32* readnone writeonly %p)
10; CHECK: Attributes {{.*}} are incompatible
11
12declare void @d(i32* readonly writeonly %p)
13; CHECK: Attributes {{.*}} are incompatible