OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [lto/] [20081210-1_0.c] - Blame information for rev 753

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
#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
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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.