Files
qt-creator/tests/unit/unittest/data/symbolindexing_main1.cpp
Marco Bubke b592339b4d Clang: Don't parse system headers
Change-Id: I6474fbe4f43daaac930ad6ba49fd9cb3145a3bbd
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
2018-08-14 15:03:41 +00:00

42 lines
537 B
C++

void function();
void function()
{
int x;
x = 20;
}
template <typename T>
T templateFunction(T t)
{
return t;
}
template <>
int templateFunction(int t)
{
return t;
}
extern template double templateFunction<double>(double);
template double templateFunction<double>(double);
template<typename T>
using TemplateFunctionType = T(&)(T);
TemplateFunctionType<int> aliasToTemplateFunction = templateFunction<int>;
void f()
{
aliasToTemplateFunction(1);
}
void f(int);
void f(double);
void f2()
{
function();
}