aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/data/symbolindexing_main1.cpp
blob: 58df77916a0228a23e5a09cd1e2a049ba41dc42c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);