Sean Eveson | 5110d4f | 2018-01-08 13:42:26 +0000 | [diff] [blame] | 1 | // RUN: %clang -target x86_64-unknown %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ABSENT |
| 2 | // RUN: %clang -target x86_64-scei-ps4 -fno-stack-size-section %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ABSENT |
| 3 | // CHECK-ABSENT-NOT: -fstack-size-section |
| 4 | |
| 5 | // RUN: %clang -target x86_64-unknown -fstack-size-section -### 2>&1 | FileCheck %s --check-prefix=CHECK-PRESENT |
| 6 | // RUN: %clang -target x86_64-scei-ps4 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-PRESENT |
| 7 | // CHECK-PRESENT: -fstack-size-section |
| 8 | |
| 9 | int foo() { return 42; } |