From 312c8049f2cc9003d6c20176f425b69e7c18c566 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Fri, 3 Oct 2014 07:54:12 +0000 Subject: [PATCH] MS ABI: Add a vftable test for pure virtual methods llvm-svn: 218965 --- .../microsoft-abi-vtables-virtual-inheritance.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/clang/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp b/clang/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp index bc1ab42800d3..4be681deab90 100644 --- a/clang/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp +++ b/clang/test/CodeGenCXX/microsoft-abi-vtables-virtual-inheritance.cpp @@ -777,6 +777,16 @@ struct A { A::A() {} } +namespace Test14 { +struct A { + virtual void f(); +}; +struct __declspec(dllexport) B : virtual A { + virtual void f() = 0; + // MANGLING-DAG: @"\01??_7B@Test14@@6B@" = weak_odr dllexport unnamed_addr constant [1 x i8*] [i8* bitcast (void ()* @_purecall to i8*)] +}; +} + namespace pr21031_1 { // This ordering of base specifiers regressed in r202425. struct A { virtual void f(void); };