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
PR modula2/117371: type incompatibility between INTEGER and CARDINAL
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wstrict-aliasing-bogus-pta-1.c
blob
a48827474d7ee5f81e85f46a626012d056623c87
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wall" } */
3
4
struct
S
{
int
*
p
;
int
*
q
; };
5
6
void
foo
(
struct
S
*);
7
8
int
bar
(
int
b
)
9
{
10
struct
S s
;
11
int
*
p
;
12
float
f
;
13
foo
(&
s
);
14
if
(
b
)
15
p
=
s
.
q
;
16
else
17
p
= (
int
*)&
f
;
18
return
*
p
;
19
}