1 /*
2    20030125-1.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 // TODO: Enable when sdcc supports double!
12 #if 0
13 /* Verify whether math functions are simplified.  */
14 #include <math.h>
15 
16 float
17 t(float a)
18 {
19 	return sin(a);
20 }
21 float
22 q(float a)
23 {
24 	return floor(a);
25 }
26 double
27 q1(float a)
28 {
29 	return floor(a);
30 }
31 #endif
32 
33 void
testTortureExecute(void)34 testTortureExecute (void)
35 {
36 #if 0
37 	if (t(0)!=0)
38 		ASSERT (0);
39 	if (q(0)!=0)
40 		ASSERT (0);
41 	if (q1(0)!=0)
42 		ASSERT (0);
43 	return;
44 #endif
45 }
46 
47 
48