#include <iostream>
#define TEST_CTOR_INHERITANCE 1
class Base
{
public:
Base() { }
Base(Base& other){ }
Base(int value) { std::cout << "Base(" << value << ")\n"; }
};
class Derived : public Base
{
public:
#if TEST_CTOR_INHERITANCE
using Base::Base;
#endif
};
Derived a;
Derived b(a);
#if TEST_CTOR_INHERITANCE
Derived c(42);
#endif
int main()
{
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojZGVmaW5lIFRFU1RfQ1RPUl9JTkhFUklUQU5DRSAxCgpjbGFzcyBCYXNlCnsKcHVibGljOgoJQmFzZSgpIHsgfQoJQmFzZShCYXNlJiBvdGhlcil7IH0KCUJhc2UoaW50IHZhbHVlKSB7IHN0ZDo6Y291dCA8PCAiQmFzZSgiIDw8IHZhbHVlIDw8ICIpXG4iOyB9Cn07CmNsYXNzIERlcml2ZWQgOiBwdWJsaWMgQmFzZQp7CnB1YmxpYzoKCSNpZiBURVNUX0NUT1JfSU5IRVJJVEFOQ0UKCQl1c2luZyBCYXNlOjpCYXNlOwoJI2VuZGlmCn07CgpEZXJpdmVkIGE7CkRlcml2ZWQgYihhKTsKI2lmIFRFU1RfQ1RPUl9JTkhFUklUQU5DRQoJRGVyaXZlZCBjKDQyKTsKI2VuZGlmCgppbnQgbWFpbigpCnsKfQo=