Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
t29.C
blob: 41a034802e505a218a985105b6165608addcbeab [
file
] [
log
] [
blame
]
// { dg-do assemble { target { ! c++11 } } }
template
<
class
X
,
int
n
>
X f
(
auto
X
(*
x
)[
n
])
{
return
(*
x
)[
n
/
2
];
}
extern
int
i
[
30
];
extern
double
d
[
99
];
int
foo
(
int
ii
)
{
return
f
(&
i
);
}
// causes abort
double
foo
(
double
dd
)
{
return
f
(&
d
);
}