Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}