summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/stack-size-section.c
blob: f81ba191f7523bd11c3fa854ed6d75fa4fefc047 (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 -triple x86_64-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
// CHECK-ABSENT-NOT: section .stack_sizes

// RUN: %clang_cc1 -triple x86_64-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
// CHECK-PRESENT: section .stack_sizes

int foo() { return 42; }
OpenPOWER on IntegriCloud