summaryrefslogtreecommitdiff
path: root/test/CodeGen/stack-size-section.c
blob: 504a42de1341859dbeecfbe65b2bae8ec584900e (plain)
1
2
3
4
5
6
7
8
9
// REQUIRES: x86-registered-target

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

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

int foo() { return 42; }