Files
clang-p2996/clang/test/ASTMerge/Inputs/init-ctors-classes.cpp
Sean Callanan dd2c174132 Added support to the ASTImporter for C++ constructor initializers.
Also added named casts and propagation of "implicit" to fix the LLDB testsuite.
This is a fixed commit of r269546, which was reverted by r269575.

Thanks to Aleksei Sidorin for review and advice.

llvm-svn: 269693
2016-05-16 20:48:03 +00:00

20 lines
251 B
C++

class A_base
{
public:
int x;
A_base() : x(0) {
}
A_base(int _x) : x(static_cast<int>(_x)) {
}
};
class A : public A_base
{
public:
int y;
struct { int z; };
int array[2];
A(int _x) : A_base(_x), y(0), z(1), array{{2},{3}} {
}
};