Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for32.C
blob: 375a7073a4150f80129e16f6bb1035e49e67cb8b [
file
] [
log
] [
blame
]
// PR c++/77545
// { dg-do compile { target c++11 } }
// { dg-options "-Wno-pedantic" }
template
<
typename
T
>
struct
A
{
A
();
~
A
();
T t
;
};
void
f
(
A
<
int
>
a
)
{
for
(
auto
x
:
(
A
<int>
[])
{
a
})
;
}