Sign in
gnu
/
gcc.git
/
3e4ced9de1f1c6444eae44c1fed493742c345bc6
/
.
/
gcc
/
testsuite
/
c-c++-common
/
Wdangling-pointer-10.c
blob: ef553bdf2ce1a76a7a4c9e45f977e5d133297f60 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Wdangling-pointer" } */
struct
S
{
int
x
;
};
void
g
(
int
**
p
)
{
struct
S s
=
{};
*
p
=
&
s
.
x
;
/* { dg-warning "address of local variable" } */
}