Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / warn / Wunused-var-25.C
blob959e79cc4164863002a36dba2266ce37566ece9a
1 // { dg-do compile { target c++14 } }
2 // { dg-options "-Wunused-but-set-variable" }
4 template <int... I> struct A { };
5 template <int... I>
6 auto f()
8   constexpr int ar[sizeof...(I)+1] = {I...};
9   return A<ar[I]...>();
12 int main()
14   f<>();