Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
nontype-auto4.C
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
);
}