aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.pt/nontype1.C
blob: 95c683f491b168542bc6325ba0f2c13a45379801 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }

template<int N_length>
struct B
{
    B();
    ~B();
};
template<class P, int N>
struct D
{
    D(int r0);
    D(B<N-1> &, int);
};
template<class T>
void func()
{
    D<T,1> tmp;
}