Sign in
gnu
/
gcc
/
57ea00136418991e847e46a6946a81a1df70c9a4
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
init6.C
blob: 66e511a6bd61c7063d21ca3c2638418b7ef94b52 [
file
] [
log
] [
blame
]
// { dg-do run }
// Test for default-initialization of POD-structs in functional cast notation.
struct
foo
{
int
a
[
10
];
};
int
main
()
{
foo f
=
foo
();
int
r
=
0
;
for
(
int
i
=
0
;
i
<
10
;
++
i
)
r
|=
f
.
a
[
i
];
return
r
;
}