brintos

brintos / llvm-project-archived public Read only

0
0
Text · 880 B · e892a6c Raw
29 lines · plain
1; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s2 3declare void @a(ptr byval(i64) inalloca(i64) %p)4; CHECK: Attributes {{.*}} are incompatible5 6declare void @b(ptr inreg inalloca(i64) %p)7; CHECK: Attributes {{.*}} are incompatible8 9declare void @c(ptr sret(i64) inalloca(i64) %p)10; CHECK: Attributes {{.*}} are incompatible11 12declare void @d(ptr nest inalloca(i64) %p)13; CHECK: Attributes {{.*}} are incompatible14 15declare void @e(ptr readonly inalloca(i64) %p)16; CHECK: Attributes {{.*}} are incompatible17 18declare void @f(ptr inalloca(void()) %p)19; CHECK: Attribute 'inalloca' does not support unsized types20 21declare void @g(ptr inalloca(i32) %p, i32 %p2)22; CHECK: inalloca isn't on the last parameter!23 24; CHECK: Attribute 'inalloca(i8)' applied to incompatible type!25; CHECK-NEXT: ptr @inalloca_not_pointer26define void @inalloca_not_pointer(i8 inalloca(i8)) {27  ret void28}29