Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/lto/20081210-1_0.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |