Sign in
android
/
toolchain
/
gcc
/
donut
/
.
/
gcc-4.4.0
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto5.C
blob: ebe2df22e6fa01bb29f47bda24412c386dcdf4c9 [
file
] [
log
] [
blame
]
// Testcase for non-dependent auto in templates
// { dg-options "-std=c++0x" }
struct
A
{
template
<class>
void
f
();
}
a
;
template
<
class
T
>
void
g
()
{
auto
aa
=
a
;
aa
.
f
<int>
();
auto
p
=
new
auto
(
a
);
p
->
f
<int>
();
}
int
main
()
{
g
<double>
();
}