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 3 4// CHECK: @"\01??_7B@?1??foo@A@@QAEXH@Z@6B@" = 5// CHECK: @"\01??_7D@C@?1??foo@@YAXXZ@6B@" = 6// MSVC2013: define {{.*}} @"\01?baz@E@?3??bar@C@?1??foo@@YAXXZ@QAEXXZ@QAEXXZ"( 7// MSVC2015: define {{.*}} @"\01?baz@E@?1??bar@C@?1??foo@@YAXXZ@QAEXXZ@QAEXXZ"( 8 9// Microsoft Visual C++ ABI examples. 10struct A { 11 void foo (int) { 12 struct B { virtual ~B() {} }; 13 B(); 14 } 15}; 16inline void foo () { 17 struct C { 18 struct D { virtual ~D() {} }; 19 void bar () { 20 struct E { 21 void baz() { } 22 }; 23 E().baz(); 24 } 25 }; 26 A().foo(0); 27 C::D(); 28 C().bar(); 29} 30void call () { 31 foo(); 32} 33