tcc-65816/test/tests/20000314-2.c
2017-06-09 13:52:12 +02:00

24 lines
287 B
C

typedef unsigned long long uint32;
const uint32 bigconst = 1 << 18;
int a = 1;
static
uint32 getmask(void)
{
if (a)
return bigconst;
else
return 0;
}
main()
{
uint32 f = getmask();
if (sizeof (long long) == 4
&& f != bigconst) abort ();
exit (0);
}