aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/nontype19.C
blob: 1df78b3b3806b4d5469d00e0b387d9982221f1ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/42466

template<class IntT, IntT X>
struct A
{
  A();

  template<IntT X2>
  A(const A<IntT, X2>& other);
};

int main(int argc, char** argv)
{
    A<int, 42> a;
    A<int, 100> b = a;

    A<unsigned, 42u> c;
    A<unsigned, 100u> d = c;
}