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
Testsuite: fix analyzer tests on Darwin
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
analyzer
/
pr95152-4.c
blob
f2a72cad01c0c38d6cd25983cf6490a32858e604
1
/* { dg-additional-options "-Wno-pointer-to-int-cast" } */
2
extern
void
my_func
(
int
);
3
typedef
struct
{
4
int
var
;
5
}
info_t
;
6
extern
void
*
_data_offs
;
7
void
test
()
8
{
9
info_t
*
info
= ((
void
*)((
void
*)
1
) + ((
unsigned int
)&
_data_offs
));
10
my_func
(
info
->
var
==
0
);
11
}