aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/array20.C
blob: 2e5c1e33a9f6285afadd80d725705af3749d4f00 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/38950

template <typename T, T N> void f(T(&)[N]);

int main() {
    int x[2];
    unsigned int y[2];
    f(x); // works
    f(y); // ICE
}