aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/sizeof9.C
blob: 8d9ec95ae1f030ca0f665caa6c29e2d7219e49cb (plain)
1
2
3
4
5
6
// PR c++/21025

template<int N> struct X { char x[N]; };
template<typename T> X<1 + sizeof(T) - sizeof(T)> F(T const &);
template<int N> struct S { int d() { F(1); } };