prog.cpp: In function 'int main()':
prog.cpp:15:20: error: no matching function for call to 'Test1::Test1(Test&)'
Test1 t1 = (Test1)t;
^
prog.cpp:11:7: note: candidate: constexpr Test1::Test1()
class Test1{};
^
prog.cpp:11:7: note: candidate expects 0 arguments, 1 provided
prog.cpp:11:7: note: candidate: constexpr Test1::Test1(const Test1&)
prog.cpp:11:7: note: no known conversion for argument 1 from 'Test' to 'const Test1&'
prog.cpp:11:7: note: candidate: constexpr Test1::Test1(Test1&&)
prog.cpp:11:7: note: no known conversion for argument 1 from 'Test' to 'Test1&&'