Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for28.C
blob: 5007349949aa4fa72dd308ba9464b737a69784aa [
file
] [
log
] [
blame
]
// PR c++/59165
// { dg-require-effective-target c++11 }
namespace
std
{
int
*
begin
(
int
i
)
{
return
(
int
*)
0
;
}
int
*
end
(
int
i
)
{
return
(
int
*)
0
;
}
}
int
main
()
{
for
(
int
a
:
10
)
{
}
// { dg-error "was not declared" }
}