summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/stack-size-section.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/stack-size-section.c')
-rw-r--r--clang/test/CodeGen/stack-size-section.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/stack-size-section.c b/clang/test/CodeGen/stack-size-section.c
new file mode 100644
index 00000000000..f81ba191f75
--- /dev/null
+++ b/clang/test/CodeGen/stack-size-section.c
@@ -0,0 +1,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