mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 15:29:46 +00:00
8e35a82c91
Closes #409
22 lines
337 B
C
22 lines
337 B
C
/*
|
|
!!DESCRIPTION!! bss-name pragma
|
|
!!ORIGIN!! cc65 regression tests
|
|
!!LICENCE!! Public Domain
|
|
!!AUTHOR!! Piotr Fusik
|
|
*/
|
|
|
|
/*
|
|
see: https://github.com/cc65/cc65/issues/409
|
|
*/
|
|
|
|
#pragma bss-name (push,"ZEROPAGE")
|
|
|
|
char zp_var;
|
|
|
|
#pragma bss-name (pop)
|
|
|
|
int main(void)
|
|
{
|
|
return (unsigned) &zp_var < 0x100 ? 0 : 1;
|
|
}
|