2018-01-08 23:46:18 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
|
|
|
|
2018-01-08 22:43:28 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
|
2018-01-08 21:42:26 +08:00
|
|
|
// CHECK-ABSENT-NOT: section .stack_sizes
|
|
|
|
|
2018-01-08 22:43:28 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
|
2018-01-08 21:42:26 +08:00
|
|
|
// CHECK-PRESENT: section .stack_sizes
|
|
|
|
|
|
|
|
int foo() { return 42; }
|