aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Transforms/SafeStack/NVPTX/safestack-libcall-error.ll
blob: a17a9dd867e3a8e085a94a2f8d05f4f38062189e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not opt -disable-output -mtriple=nvptx64-- -mcpu=sm_90 -passes=safe-stack %s 2>&1 | FileCheck %s

; CHECK: error: no libcall available for stackprotector check fail
define void @foo(i32 %t) #0 {
  %vla = alloca i32, i32 %t, align 4
  call void @baz(ptr %vla)
  ret void
}

declare void @baz(ptr)

attributes #0 = { nounwind safestack sspstrong }