[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGenCXX / mangle-ms-abi-examples.cpp
blob2f8490ac35a8185504ba05c8edb86c1d96edef10
1 // RUN: %clang_cc1 -fms-extensions -fno-rtti -emit-llvm %s -o - -triple=i386-pc-win32 -fms-compatibility-version=19.00 | FileCheck %s --check-prefix=CHECK --check-prefix=MSVC2015
2 // RUN: %clang_cc1 -fms-extensions -fno-rtti -emit-llvm %s -o - -triple=i386-pc-win32 -fms-compatibility-version=18.00 | FileCheck %s --check-prefix=CHECK --check-prefix=MSVC2013
4 // CHECK: @"??_7B@?1??foo@A@@QAEXH@Z@6B@" =
5 // CHECK: @"??_7D@C@?1??foo@@YAXXZ@6B@" =
6 // MSVC2013: define {{.*}} @"?baz@E@?3??bar@C@?1??foo@@YAXXZ@QAEXXZ@QAEXXZ"(
7 // MSVC2015: define {{.*}} @"?baz@E@?1??bar@C@?1??foo@@YAXXZ@QAEXXZ@QAEXXZ"(
9 // Microsoft Visual C++ ABI examples.
10 struct A {
11 void foo (int) {
12 struct B { virtual ~B() {} };
13 B();
16 inline void foo () {
17 struct C {
18 struct D { virtual ~D() {} };
19 void bar () {
20 struct E {
21 void baz() { }
23 E().baz();
26 A().foo(0);
27 C::D();
28 C().bar();
30 void call () {
31 foo();