* 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
blob80a1e9a2c030ad9d50326894bcbae0d75faaa4e9
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
9 extern void srand (uintptr_t);
11 inline void __attribute__ ((gnu_inline))
12 foo (uintptr_t seed)
14 srand (seed * seed);
17 int
18 main ()
20 foo (0);
21 srand ((uintptr_t) (&foo));
22 return 0;