llvm/test/CodeGen/SPIRV/function/vararg.ll
raw| 1 | ; RUN: not llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_INTEL_function_pointers < %s 2>&1 | FileCheck %s |
| 2 | |
| 3 | define void @bar() { |
| 4 | entry: |
| 5 | call spir_func void (i32, ...) @_Z3fooiz(i32 5, i32 3) |
| 6 | ret void |
| 7 | } |
| 8 | |
| 9 | ; CHECK:error: {{.*}} in function bar void (): SPIR-V does not support variadic functions |
| 10 | declare spir_func void @_Z3fooiz(i32, ...) |