Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / stack-size-section.c
blob71805679433197da6c402b54f3c067009605b5aa
1 // REQUIRES: x86-registered-target
3 // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
4 // CHECK-ABSENT-NOT: section .stack_sizes
6 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
7 // CHECK-PRESENT: section .stack_sizes
9 int foo(void) { return 42; }