bug-868103.c
来自「sdcc是为51等小型嵌入式cpu设计的c语言编译器支持数种不同类型的cpu」· C语言 代码 · 共 35 行
C
35 行
/** Bug 868103 tests. storage1: near, far, code, storage2: near, far,*/#ifndef STORAGE1#define STORAGE1 {storage1}#endif#ifndef STORAGE2#define STORAGE2 {storage2}#endif#include <testfwk.h>#if defined(PORT_HOST) || defined(SDCC_z80) || defined(SDCC_gbz80)# define near# define far# define code#endiftypedef struct { STORAGE1 char * bar[2];} foo;STORAGE1 char c = 'x';STORAGE2 foo f;void bug868103(void){ f.bar[1] = &c; ASSERT(f.bar[1] == &c);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?