Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto34.C
blob: 3682d60bf4bc465c76f9a37bd4016b6c4ebbf115 [
file
] [
log
] [
blame
]
// PR c++/51421
// { dg-do compile { target c++11 } }
int
foo1
(
int
);
void
bar1
()
{
auto
i
=
foo1
(
i
);
// { dg-error "before deduction" }
}
struct
A
{};
A foo2
(
A
);
void
bar2
()
{
auto
a
=
foo2
(
a
);
// { dg-error "before deduction" }
}