mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 06:46:07 +00:00

Conversion was performed using https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 plus manual (but uninteresting) fixups.
13 lines
406 B
C++
13 lines
406 B
C++
// RUN: %clang_cc1 -fno-rtti -emit-llvm -triple=i386-pc-win32 -fms-extensions -fms-compatibility -std=c++11 %s -o - | FileCheck %s
|
|
|
|
namespace PR23452 {
|
|
struct A {
|
|
virtual void f();
|
|
};
|
|
struct B : virtual A {
|
|
virtual void f();
|
|
};
|
|
void (B::*MemPtr)(void) = &B::f;
|
|
// CHECK-DAG: @"?MemPtr@PR23452@@3P8B@1@AEXXZQ21@" = dso_local global { ptr, i32, i32 } { ptr @"??_9B@PR23452@@$BA@AE", i32 0, i32 4 }
|
|
}
|