blob: 38b5507abba5a368b9709a9d0f459bc72aaeed5e [file] [log] [blame]
Reid Kleckner4b70bfc2013-12-19 02:14:12 +00001; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
2
3declare void @a(i64* byval inalloca %p)
4; CHECK: Attributes {{.*}} are incompatible
5
6declare void @b(i64* inreg inalloca %p)
7; CHECK: Attributes {{.*}} are incompatible
8
9declare void @c(i64* sret inalloca %p)
10; CHECK: Attributes {{.*}} are incompatible
11
12declare void @d(i64* nest inalloca %p)
13; CHECK: Attributes {{.*}} are incompatible
14
15declare void @e(i64* readonly inalloca %p)
16; CHECK: Attributes {{.*}} are incompatible
17
18declare void @f(void ()* inalloca %p)
19; CHECK: do not support unsized types
Reid Klecknerad60d3c2014-01-16 22:59:24 +000020
21declare void @g(i32* inalloca %p, i32 %p2)
22; CHECK: inalloca isn't on the last parameter!