; RUN: llvm-as %s -o %t.bc ; RUN: llvm-spirv %t.bc -spirv-text -o %t ; RUN: FileCheck < %t %s ; RUN: llvm-spirv %t.bc -o %t.spv ; RUN: spirv-val %t.spv target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024" target triple = "spir-unknown-unknown" ; Function Attrs: nounwind ; CHECK: Capability Addresses ; CHECK: "foo" ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: readwrite) declare void @llvm.fake.use(...) define spir_kernel void @foo(ptr addrspace(1) %a) { entry: call void (...) @llvm.fake.use(i8 undef) ret void }