PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / call-trap-1.c
blobc1aa90d430e4b23da3bfd0ca70a9b68a0a824e32
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> */
5 /* { dg-require-effective-target untyped_assembly } */
7 extern void exit (int);
8 extern void abort (void);
10 int
11 foo (void)
13 exit (0);
14 return 0;
17 void
18 bar (void)
22 int
23 main (void)
25 ((long (*)(int))bar) (foo ());
26 abort ();