(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
template/
array36.C
// Don't try to deduce array bounds from a dependent initializer.
// { dg-do compile { target c++11 } }

struct A { int i,j; };

template <class T> void f(T t)
{
  A ar[] = { t, t };
  static_assert (sizeof(ar)/sizeof(A) == 1, "");
}

int main()
{
  f(42);
}