aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/inline-stacksize.c
blob: 6aab158987d7654a3602b4579ca576defe486028 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -O2 -emit-llvm %s -o - | FileCheck %s --check-prefixes NOOPT
// RUN: %clang_cc1 -O2 -finline-max-stacksize=64 -emit-llvm %s -o - | FileCheck %s --check-prefix OPT

void foo() {}

// NOOPT-NOT: inline-max-stacksize
// OPT:       define {{.*}}@foo{{.*}}#[[ATTR:[0-9]+]]
// OPT:       attributes #[[ATTR]] = {{.*}}"inline-max-stacksize"="64"