struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / bug-2885.c
blob1ef6deb436bbd3b6f310c20faa71420ec83675a5
1 /*
2 bug-2885.c
3 INT_MIN was not of type int.
4 */
6 #include <testfwk.h>
8 #include <limits.h>
10 void testBug (void)
12 ASSERT(sizeof(INT_MIN) == sizeof(int));
13 ASSERT(sizeof(INT_MAX) == sizeof(int));
14 ASSERT(sizeof(UINT_MAX) == sizeof(unsigned int));
15 ASSERT(sizeof(LONG_MIN) == sizeof(long));
16 ASSERT(sizeof(LONG_MAX) == sizeof(long));
17 ASSERT(sizeof(ULONG_MAX) == sizeof(unsigned long));
18 ASSERT(sizeof(LLONG_MIN) == sizeof(long long));
19 ASSERT(sizeof(LLONG_MAX) == sizeof(long long));
20 ASSERT(sizeof(ULLONG_MAX) == sizeof(unsigned long long));