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-20000402-1.c
blobe933b885410b8397031f06377aaf3f93413ac453
1 /*
2 20000402-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 #include <limits.h>
13 // TODO: Enable when sdcc supports long long constants!
14 /*#if ULONG_LONG_MAX != 18446744073709551615ull && ULONG_MAX != 18446744073709551615ull
15 void
16 testTortureExecute (void) { return; }
17 #else
18 #if ULONG_MAX != 18446744073709551615ull
19 typedef unsigned long long ull;
20 #else
21 typedef unsigned long ull;
22 #endif
24 #include <stdio.h>
26 void checkit(int);*/
28 void
29 testTortureExecute (void) {
30 /*const ull a = 0x1400000000ULL;
31 const ull b = 0x80000000ULL;
32 const ull c = a/b;
33 const ull d = 0x1400000000ULL / 0x80000000ULL;
35 checkit ((int) c);
36 checkit ((int) d);
38 return;*/
41 /*void checkit (int a)
43 if (a != 40)
44 ASSERT (0);
46 #endif*/