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
* c-c++-common/ubsan/float-cast-overflow-6.c: Add i?86-*-* target.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
lto
/
20081210-1_0.c
blob
80a1e9a2c030ad9d50326894bcbae0d75faaa4e9
1
#if defined(_LP64)
2
typedef
unsigned long int uintptr_t
;
3
#elif defined (_WIN64)
4
typedef
unsigned long long int uintptr_t
;
5
#else
6
typedef
unsigned int uintptr_t
;
7
#endif
8
9
extern
void
srand
(
uintptr_t
);
10
11
inline
void
__attribute__
((
gnu_inline
))
12
foo
(
uintptr_t
seed
)
13
{
14
srand
(
seed
*
seed
);
15
}
16
17
int
18
main
()
19
{
20
foo
(
0
);
21
srand
((
uintptr_t
) (&
foo
));
22
return
0
;
23
}