Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20020321-1.c
blob4d7e9c27b783c290bebe066c318c4fa65eb6b786
1 /*
2 20020321-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #pragma disable_warning 85
13 /* PR 3177 */
14 /* Produced a SIGILL on ia64 with sibcall from F to G. We hadn't
15 widened the register window to allow for the fourth outgoing
16 argument as an "in" register. */
18 float g (void *a, void *b, int e, int c, float d)
20 return d;
23 float f (void *a, void *b, int c, float d)
25 return g (a, b, 0, c, d);
28 void
29 testTortureExecute (void)
31 f (0, 0, 1, 1);
32 return;