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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [call-trap-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* Undefined behavior from a call to a function cast to a different
2
   type does not appear until after the function designator and
3
   arguments have been evaluated.  PR 38483.  */
4
/* Origin: Joseph Myers <joseph@codesourcery.com> */
5
 
6
extern void exit (int);
7
extern void abort (void);
8
 
9
int
10
foo (void)
11
{
12
  exit (0);
13
  return 0;
14
}
15
 
16
void
17
bar (void)
18
{
19
}
20
 
21
int
22
main (void)
23
{
24
  ((long (*)(int))bar) (foo ());
25
  abort ();
26
}

powered by: WebSVN 2.1.0

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