Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto26.C
blob: d355a63973d4b433389161ad00f3b5b202820d27 [
file
] [
log
] [
blame
]
// PR c++/43321
// { dg-do compile { target c++11 } }
template
<
class
T
>
void
f
(
T t
)
{
auto
*
p
=
t
;
}
template
<
class
T
>
void
g
(
const
T
&
tr
)
{
auto
p
=
*
tr
;
}
int
main
()
{
int
b
;
f
(&
b
);
g
(&
b
);
}