mirror of
https://github.com/Kitware/CMake.git
synced 2025-07-03 02:26:24 +08:00
19 lines
134 B
C++
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);
|
|
}
|