varargs-intrinsic.ll 437 B

12345678910111213141516
  1. ; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
  2. declare void @llvm.experimental.stackmap(i64, i32)
  3. declare void @llvm.donothing(...)
  4. define void @foo1() {
  5. call void @llvm.experimental.stackmap(i64 0, i32 12)
  6. ; CHECK: Callsite was not defined with variable arguments!
  7. ret void
  8. }
  9. define void @foo2() {
  10. call void (...) @llvm.donothing(i64 0, i64 1)
  11. ; CHECK: Intrinsic was not defined with variable arguments!
  12. ret void
  13. }