blob: 36b2b3fc4d629aabfb8a45923bf4d48c60d9b840 [file] [log] [blame]
// { dg-do compile { target c++17 } }
template <class T, T n> void f(T, int (&)[n]);
template <class T, T n> void g(int (&)[n], T);
template <class T, T n> void h(int (&)[n]);
int main()
{
const int i = 42;
int ar[i];
h(ar);
f(i, ar);
g(ar, i);
}