Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Driver / cxx-abi-flag.cpp
blobe6b13dbaf4e40d4bda993f21a6a85a05d07d4439
1 // Ensure that the driver flag is propagated to cc1.
2 // RUN: %clang -### -fc++-abi=itanium -target x86_64-unknown-linux-gnu %s \
3 // RUN: 2>&1 | FileCheck %s -check-prefix=ITANIUM
4 // RUN: %clang -### -fc++-abi=fuchsia -target x86_64-unknown-fuchsia %s \
5 // RUN: 2>&1 | FileCheck %s -check-prefix=FUCHSIA
6 // RUN: %clang -### -fc++-abi=microsoft -target x86_64-unknown-windows-msvc %s \
7 // RUN: 2>&1 | FileCheck %s -check-prefix=MICROSOFT
8 //
9 // ITANIUM: -fc++-abi=itanium
10 // FUCHSIA: -fc++-abi=fuchsia
11 // MICROSOFT: -fc++-abi=microsoft