25 lines · plain
1; REQUIRES: x86-registered-target2 3; RUN: opt -passes="print-stack-safety" -disable-output %s 2>&1 | FileCheck %s --check-prefixes=CHECK4 5; CHECK: @main6; CHECK-NEXT: args uses:7; CHECK-NEXT: argv[]: empty-set8; CHECK-NEXT: allocas uses:9; CHECK-NEXT: [4]: [0,4)10; CHECK-NEXT: [32]: full-set11; CHECK-NEXT: safe accesses:12 13target datalayout = "e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128"14target triple = "i386-pc-linux-gnu"15 16; Function Attrs: mustprogress norecurse sanitize_address uwtable17define dso_local i32 @main(i32 %argc, ptr %argv) {18entry:19 %0 = alloca i32, align 420 %1 = alloca i8, i64 32, align 3221 %2 = ptrtoint ptr %1 to i3222 store i32 %2, ptr %0, align 423 ret i32 024}25