blob: fecb762405054be26e3f25dbca29f306280bac64 [file] [log] [blame]
sewardjde4a1d02002-03-22 01:27:54 +00001
2int main ( void )
3{
sewardj9085f7e2006-01-18 04:17:18 +00004#if defined(__powerpc64__)
5 /* on ppc64-linux, a function pointer points to a function
6 descriptor, not to the function's entry point. Hence to get
7 uniform behaviour on all supported targets - a jump to 0xE000000
8 - the following is needed. */
9 unsigned long long int fake_fndescr[3];
10 fake_fndescr[0] = 0xE000000;
11 fake_fndescr[1] = 0;
12 fake_fndescr[2] = 0;
13 return ((int(*)(void)) fake_fndescr) ();
14#else
sewardjde4a1d02002-03-22 01:27:54 +000015 char* p = (char*)0xE000000;
16 return ((int(*)(void)) p) ();
sewardj9085f7e2006-01-18 04:17:18 +000017#endif
sewardjde4a1d02002-03-22 01:27:54 +000018}