| 1 |
/// PS4/PS5 miscellaneous toolchain behavior. |
| 2 |
|
| 3 |
// RUN: %clang -c %s -### -target x86_64-scei-ps4 2>&1 | FileCheck %s |
| 4 |
// RUN: %clang -c %s -### -target x86_64-sie-ps5 2>&1 | FileCheck %s |
| 5 |
// CHECK-DAG: "-ffunction-sections" |
| 6 |
// CHECK-DAG: "-fdata-sections" |
| 7 |
// CHECK-DAG: "-fdeclspec" |
| 8 |
|
| 9 |
/// Verify LTO is enabled (no diagnostic). |
| 10 |
// RUN: %clang %s -### -target x86_64-scei-ps4 -flto 2>&1 | FileCheck %s --check-prefix=LTO |
| 11 |
// RUN: %clang %s -### -target x86_64-sie-ps5 -flto 2>&1 | FileCheck %s --check-prefix=LTO |
| 12 |
// LTO-NOT: error: |
| 13 |
// LTO-NOT: unable to pass LLVM bit-code |