| 1 |
// RUN: %clang --target=x86_64-unknown-linux -### %s -flto=full -funified-lto 2>&1 | FileCheck --check-prefix=UNIT %s |
| 2 |
// RUN: %clang --target=x86_64-unknown-linux -### %s -flto=thin -funified-lto 2>&1 | FileCheck --check-prefix=UNIT %s |
| 3 |
// RUN: %clang --target=x86_64-scei-ps4 -### %s -flto=full -funified-lto 2>&1 | FileCheck --check-prefix=UNIT %s |
| 4 |
// RUN: %clang --target=x86_64-scei-ps4 -### %s -flto=thin -funified-lto 2>&1 | FileCheck --check-prefix=NOUNIT %s |
| 5 |
|
| 6 |
// UNIT: "-flto-unit" |
| 7 |
// NOUNIT-NOT: "-flto-unit" |
| 8 |
|
| 9 |
// RUN: %clang --target=x86_64-sie-ps5 -### %s -funified-lto 2>&1 | FileCheck --check-prefix=NOUNILTO %s |
| 10 |
// NOUNILTO: clang: warning: argument unused during compilation: '-funified-lto' |
| 11 |
// NOUNILTO: "-cc1" |
| 12 |
// NOUNILTO-NOT: "-funified-lto |