1 // RUN: %clang_cc1 -Wno-microsoft -fms-extensions -fno-rtti -std=c++11 -emit-llvm %s -o - -triple=i386-pc-win32 | FileCheck %s
3 template <typename T
, int (T::*)() = nullptr>
6 template <typename T
, int T::* = nullptr>
9 struct __single_inheritance M
;
11 // CHECK-DAG: @"?m@@3U?$J@UM@@$0A@@@A"
14 // CHECK-DAG: @"?m2@@3U?$K@UM@@$0?0@@A"
16 struct __multiple_inheritance N
;
18 // CHECK-DAG: @"?n@@3U?$J@UN@@$HA@@@A"
21 // CHECK-DAG: @"?n2@@3U?$K@UN@@$0?0@@A"
23 struct __virtual_inheritance O
;
25 // CHECK-DAG: @"?o@@3U?$J@UO@@$IA@A@@@A"
28 // CHECK-DAG: @"?o2@@3U?$K@UO@@$FA@?0@@A"
32 // CHECK-DAG: @"?p@@3U?$J@UP@@$JA@A@?0@@A"
35 // CHECK-DAG: @"?p2@@3U?$K@UP@@$GA@A@?0@@A"
37 #pragma pointers_to_members(full_generality, virtual_inheritance)
48 struct MostGeneral
: S
, virtual GeneralBase
{
51 template <void (MostGeneral::*MP
)()>
52 struct ClassTemplate
{
56 template struct ClassTemplate
<&MostGeneral::h
>;
58 // Test that we mangle in the vbptr offset, which is 12 here.
60 // CHECK: define weak_odr dso_local x86_thiscallcc noundef ptr @"??0?$ClassTemplate@$J??_9MostGeneral@@$BA@AEA@M@3@@QAE@XZ"