Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}