blob: 92db9a789b3c3713c5a27374ebb18d17faa88cec [file] [log] [blame]
Timur Iskhodzhanova53d7a02013-09-27 14:48:01 +00001// RUN: %clang_cc1 -std=c++11 -fno-rtti -emit-llvm %s -o - -cxx-abi microsoft -triple=i386-pc-win32 | FileCheck %s
2
3struct A {
4 constexpr A(int x) : x(x) {}
5 virtual void f();
6 int x;
7};
8
9A a(42);
10// CHECK: @"\01?a@@3UA@@A" = global { [1 x i8*]*, i32 } { [1 x i8*]* @"\01??_7A@@6B@", i32 42 }, align 4
11
12struct B {
13 constexpr B(int y) : y(y) {}
14 virtual void g();
15 int y;
16};
17
18struct C : A, B {
19 constexpr C() : A(777), B(13) {}
20};
21
22C c;
23// 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 }