brintos

brintos / llvm-project-archived public Read only

0
0
Text · 658 B · 1d87cae Raw
19 lines · plain
1; RUN: opt -safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s2; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s3; RUN: opt -passes=safe-stack -S -mtriple=i386-pc-linux-gnu < %s -o - | FileCheck %s4; RUN: opt -passes=safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s5 6@.str = private unnamed_addr constant [4 x i8] c"%s\0A\00", align 17 8; Passing addr-of to function call9; Requires protector.10define void @foo() nounwind uwtable safestack {11entry:12  ; CHECK: __safestack_unsafe_stack_ptr13  %b = alloca i32, align 414  call void @funcall(ptr %b) nounwind15  ret void16}17 18declare void @funcall(ptr)19