summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_default_function_template_args.cpp
blob: bcca6aa4014ccec1ed0c83d85792186befee19c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

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

void otherFunc()
{
  someFunc();
}