repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
warn-access: wrong -Wdangling-pointer with labels [PR106080]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wdangling-pointer-10.c
blob
ef553bdf2ce1a76a7a4c9e45f977e5d133297f60
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wdangling-pointer" } */
3
4
struct
S
{
5
int
x
;
6
};
7
8
void
g
(
int
**
p
)
9
{
10
struct
S s
= {};
11
*
p
= &
s
.
x
;
/* { dg-warning "address of local variable" } */
12
}