CMake/Tests/CompileFeatures/cxx_inheriting_constructors.cpp
Stephen Kelly 5d57970dd9 Features: Use variable in cxx_inheriting_constructors test.
Avoid warning with SolarisStudio.
2015-01-17 14:48:27 +01:00

19 lines
134 B
C++

struct A
{
int m_i;
A(int i) : m_i(i) {}
};
struct B : public A
{
using A::A;
};
void someFunc()
{
int i = 0;
B b(i);
}