1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
cc65/test/err/void-size2.c
Greg King 750a527100 Made C's sizeof operator work with initialized void variables.
Added regression tests that check cc65's handling of void variables.
2017-03-12 14:41:32 -04:00

12 lines
201 B
C

/*
!!DESCRIPTION!! Size of void cast
!!ORIGIN!! cc65 regression tests
!!LICENCE!! Public Domain
!!AUTHOR!! Greg King
*/
unsigned test (void)
{
return sizeof ((void)12345);
}