2 20021118-2.c from the execute part of the gcc torture suite.
9 #pragma disable_warning 93
12 /* Since these tests use function pointers with multiple parameters */
13 /* we can only proceed if we are compiling reentrant functions. */
15 #ifdef __SDCC_STACK_AUTO
17 /* Originally added to test SH constant pool layout. t1() failed for
18 non-PIC and t2() failed for PIC. */
20 int t1 (float *f
, int i
,
22 void (*f2
) (float, float))
29 int t2 (float *f
, int i
,
31 void (*f2
) (float, float),
46 void f2 (float f1
, float f2
)
48 if (f1
!= 2.5f
|| f2
!= 3.5f
)
60 testTortureExecute (void)
63 float f
[3] = { 2.0f
, 3.0f
, 4.0f
};
65 t2 (f
, 1, f1
, f2
, f3
);
66 if (f
[0] != 3.0f
&& f
[1] != 4.0f
)