Made C's sizeof operator work with initialized void variables.
Added regression tests that check cc65's handling of void variables.
This commit is contained in:
11
test/err/void-size2.c
Normal file
11
test/err/void-size2.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
!!DESCRIPTION!! Size of void cast
|
||||
!!ORIGIN!! cc65 regression tests
|
||||
!!LICENCE!! Public Domain
|
||||
!!AUTHOR!! Greg King
|
||||
*/
|
||||
|
||||
unsigned test (void)
|
||||
{
|
||||
return sizeof ((void)12345);
|
||||
}
|
||||
Reference in New Issue
Block a user