aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/array-size1.C
blob: 2bc31f758949a35d8c57941197acb814d3889bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/38
// Origin: Wolfgang Bangerth <bangerth@dealii.org>
// { dg-do compile }

template <int i> struct A
{
    static const int n = 1;
    typedef double X[n];

    A (const X&);
};

template <int i> A<i>::A (const X&) {}