f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
28 lines
605 B
C++
28 lines
605 B
C++
// RUN: %clang_cc1 -fms-extensions -fno-rtti -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s
|
|
|
|
// CHECK: @"\01??_7D@C@?1??foo@@YAXXZ@6B@" =
|
|
// CHECK: @"\01??_7B@?1??foo@A@@QAEXH@Z@6B@" =
|
|
// CHECK: define {{.*}} @"\01?baz@E@?3??bar@C@?1??foo@@YAXXZ@QAEXXZ@QAEXXZ"(
|
|
|
|
// Microsoft Visual C++ ABI examples.
|
|
struct A {
|
|
void foo (int) {
|
|
struct B { virtual ~B() {} };
|
|
B();
|
|
}
|
|
};
|
|
void foo () {
|
|
struct C {
|
|
struct D { virtual ~D() {} };
|
|
void bar () {
|
|
struct E {
|
|
void baz() { }
|
|
};
|
|
E().baz();
|
|
}
|
|
};
|
|
A().foo(0);
|
|
C::D();
|
|
C().bar();
|
|
}
|
|
|