Merged revisions 143552,143554,143557,143560,143562,143564-143567,143570-143573,14357...
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / call-trap-1.c
blobaa226e745d6e13756f45c81b007314c6fa66df4e
1 /* 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> */
6 extern void exit (int);
7 extern void abort (void);
9 int
10 foo (void)
12 exit (0);
13 return 0;
16 void
17 bar (void)
21 int
22 main (void)
24 ((long (*)(int))bar) (foo ());
25 abort ();