Sign in
android
/
toolchain
/
gcc
/
donut
/
.
/
gcc-4.4.0
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto13.C
blob: dc7e35aabaa4afecaf293be3869659c46fa879a3 [
file
] [
log
] [
blame
]
// PR c++/38597
// { dg-options "-std=c++0x" }
template
<
class
T
,
class
U
>
auto
f
(
T
,
U
)
->
decltype
(
T
()
+
U
())
{
return
T
()
+
U
();
}
template
<
class
T
>
void
g
(
T
){}
int
main
()
{
g
(
f
);
}
// { dg-error "no matching function" }