brintos

brintos / llvm-project-archived public Read only

0
0
Text · 675 B · 2a9b242 Raw
18 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 52; RUN: not --crash opt -passes=safe-stack -mtriple=x86_64-pc-linux-gnu -disable-output %s 2>&1 | FileCheck %s3 4target datalayout = "A5"5 6; Declaration of __safestack_unsafe_stack_ptr already exists with wrong address space7@__safestack_unsafe_stack_ptr = external thread_local(initialexec) global ptr8 9; CHECK: LLVM ERROR: __safestack_unsafe_stack_ptr must have void* type10 11define void @alloca_addrspace() nounwind uwtable safestack {12  %a = alloca i8, align 8, addrspace(5)13  call void @Capture_as5(ptr addrspace(5) %a)14  ret void15}16 17declare void @Capture_as5(ptr addrspace(5))18