CMake/Tests/CompileFeatures/cxx_default_function_templa...

13 lines
106 B
C++

template<typename T = int>
int someFunc()
{
T t = 0;
return t;
}
void otherFunc()
{
someFunc();
}