Sign in
llvm
/
llvm-archive
/
2d92d8f3eda4630e3e80be62081ca797828d58e1
/
.
/
llvm-gcc-4.2
/
gcc
/
testsuite
/
gcc.dg
/
uninit-14.c
blob: 41b4f622ae5414104a87034a8258530d4e3c9831 [
file
] [
log
] [
blame
]
/* PR 24931 */
/* { dg-do compile } */
/* { dg-options "-O -Wuninitialized" } */
struct
p
{
short
x
,
y
;
};
struct
s
{
int
i
;
struct
p p
;
};
struct
s f
()
{
struct
s s
;
s
.
p
=
(
struct
p
){};
s
.
i
=
(
s
.
p
.
x
||
s
.
p
.
y
);
return
s
;
}