Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
array13.C
blob: 3bc152ce4f87a67b410fffd5f4dc8ad3f8996e7b [
file
] [
log
] [
blame
]
// PR c++/20208
// { dg-do run }
// { dg-options "-O2" }
extern
"C"
void
abort
();
template
<
typename
T
>
inline
void
*
Foo
(
T arg
)
{
return
&
arg
[
0
];
}
int
main
()
{
int
bry
[
2
];
if
(
Foo
<
int
[
2
]>(
bry
)
!=
bry
)
abort
();
}