CMake/Tests/CompileFeatures/cxx_default_function_templa...

13 lines
107 B
C++

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