c: fix ICE when forming composite type for two structures / unions [PR117548]
[official-gcc.git] / gcc / testsuite / g++.dg / template / sizeof9.C
blob84400d3a364c6ea41e699d45bff8422a1ad6ce2b
1 // PR c++/21025
3 template<int N> struct X { char x[N]; };
4 template<typename T> X<1 + sizeof(T) - sizeof(T)> F(T const &);
5 template<int N> struct S { int d() { F(1); return S(); } };