aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/sizeof2.C
blob: 76d1cf44c4e3801e50783e1c72e7ab46b5e55708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do compile }

template<int size>
struct Foobar {
    // Contents irrelevant
};

template <typename A>
struct Wrapper {
    // Contents irrelevant
};

template <typename A>
Foobar<sizeof(Wrapper<A>)> *
compiler_bug (A)
{
    return 0;
}

int main()
{
    compiler_bug(1);
}