3 type: bit, char, short, long
7 /* This is not only a regression test, the focus of this test
8 is more on the generated code (volatile!). */
12 #if defined(_bit) && !defined(PORT_HOST)
15 #elif defined(_bit) && defined(PORT_HOST)
16 # define MASK 0xffffffff
24 # define MASK 0xffffffff
29 #if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80)
34 /* the variable 'mask' is only defined to see if MASK is correctly set up */
35 code unsigned long mask = MASK;
38 volatile unsigned {type} uv;
39 /* an array would be nicer, but an array of bits isn't possible */
40 idata {type} a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9 ,
41 a10, a11, a12, a13, a14, a15, a16, a17, a18, a19,
43 idata unsigned {type} ua0, ua1, ua2, ua3, ua4, ua5, ua6;
45 idata volatile unsigned {type} ub = 0xbe;
105 #if defined(_bit) && !defined(PORT_HOST)
108 ASSERT( a3 == ({type}) 0x33);
111 #if defined(_bit) && !defined(PORT_HOST)
114 ASSERT(ua1 == ({type}) 0x7b);
117 #if defined(_bit) && !defined(PORT_HOST)
120 ASSERT( a5 == ({type}) 0x33);
127 ASSERT( a10 == ({type}) MASK);
128 ASSERT( a11 == ({type}) MASK);
134 ASSERT( a15 == ({type}) MASK);
137 ASSERT( a17 == ({type}) MASK);
141 ASSERT( v == ({type}) MASK);