f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
23 lines
600 B
C++
23 lines
600 B
C++
// RUN: %clang_cc1 -std=c++11 -fno-rtti -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s
|
|
|
|
struct A {
|
|
constexpr A(int x) : x(x) {}
|
|
virtual void f();
|
|
int x;
|
|
};
|
|
|
|
A a(42);
|
|
// CHECK: @"\01?a@@3UA@@A" = global { [1 x i8*]*, i32 } { [1 x i8*]* @"\01??_7A@@6B@", i32 42 }, align 4
|
|
|
|
struct B {
|
|
constexpr B(int y) : y(y) {}
|
|
virtual void g();
|
|
int y;
|
|
};
|
|
|
|
struct C : A, B {
|
|
constexpr C() : A(777), B(13) {}
|
|
};
|
|
|
|
C c;
|
|
// CHECK: @"\01?c@@3UC@@A" = global { [1 x i8*]*, i32, [1 x i8*]*, i32 } { [1 x i8*]* @"\01??_7C@@6BA@@@", i32 777, [1 x i8*]* @"\01??_7C@@6BB@@@", i32 13 }
|