xref: /llvm-project/clang/test/Driver/cxx-abi-flag.cpp (revision 5c29ffda9056e1b4602a46051371f0184ce357b2)
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
12