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