summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/NVPTX/no-stack-protector-libcall-error.ll
blob: f877d95dd37698c6995f9fa918df4269a6e13163 (plain)
1
2
3
4
5
6
7
8
9
10
; RUN: not opt -disable-output -mtriple=nvptx64-- -enable-selectiondag-sp=0 -passes=stack-protector %s 2>&1 | FileCheck %s

; CHECK: error: no libcall available for stack protector
define void @func() sspreq nounwind {
  %alloca = alloca i32, align 4
  call void @capture(ptr %alloca)
  ret void
}

declare void @capture(ptr)