Sign in
gnu
/
gcc
/
refs/tags/releases/gcc-4.8.2
/
.
/
gcc
/
testsuite
/
gcc.dg
/
struct-semi-4.c
blob: 6f4dc7c0a7fe6d01914936e5c3d4fb4df1e15571 [
file
] [
log
] [
blame
]
/* Test for missing semicolons in structures: anonymous structures and
similar cases. */
/* { dg-do compile } */
/* { dg-options "" } */
struct
s
{
struct
{
int
a
;
}
};
/* { dg-warning "no semicolon" } */
int
*
f
(
struct
s
*
p
)
{
return
&
p
->
a
;
}