Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / unified-lto.c
blob3a6fe44f5b32dfd38377287e9eab998d774885d0
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
6 // UNIT: "-flto-unit"
7 // NOUNIT-NOT: "-flto-unit"
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