inalloca1.ll 649 B

12345678910111213141516171819202122
  1. ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
  2. declare void @a(i64* byval inalloca %p)
  3. ; CHECK: Attributes {{.*}} are incompatible
  4. declare void @b(i64* inreg inalloca %p)
  5. ; CHECK: Attributes {{.*}} are incompatible
  6. declare void @c(i64* sret inalloca %p)
  7. ; CHECK: Attributes {{.*}} are incompatible
  8. declare void @d(i64* nest inalloca %p)
  9. ; CHECK: Attributes {{.*}} are incompatible
  10. declare void @e(i64* readonly inalloca %p)
  11. ; CHECK: Attributes {{.*}} are incompatible
  12. declare void @f(void ()* inalloca %p)
  13. ; CHECK: do not support unsized types
  14. declare void @g(i32* inalloca %p, i32 %p2)
  15. ; CHECK: inalloca isn't on the last parameter!