- 所有 tcc 文件/内容/宏改名为 pcc (tcc.c->pcc.c, tccelf.c->pccelf.c, libtcc.c->libpcc.c 等) - 支持架构: i386, x86_64, ARM, ARM64, RISC-V, C67 - 支持格式: PE, ELF, Mach-O, COFF - 完整预处理、代码生成、链接器、调试信息 - 构建成功: pcc.exe (x86_64 Windows) - 功能测试通过: 递归/结构体/浮点/switch/循环 - 自编译测试通过: pcc 可以编译自身
35 行
637 B
C
35 行
637 B
C
void foo(int [5]);
|
|
void fooc(int x[const 5]);
|
|
void foos(int x[static 5]);
|
|
void foov(int x[volatile 5]);
|
|
void foor(int x[restrict 5]);
|
|
void fooc(int [const 5]);
|
|
void foos(int [static 5]);
|
|
void foov(int [volatile 5]);
|
|
void foor(int [restrict 5]);
|
|
void fooc(int (* const x));
|
|
void foos(int *x);
|
|
void foov(int * volatile x);
|
|
void foor(int * restrict x);
|
|
void fooc(int x[volatile 5])
|
|
{
|
|
x[3] = 42;
|
|
#ifdef INVALID
|
|
x = 0;
|
|
#endif
|
|
}
|
|
void foovm(int x[const *]);
|
|
void foovm(int * const x);
|
|
#ifdef INVALID
|
|
void wrongc(int x[3][const 4]);
|
|
void wrongvm(int x[static *]);
|
|
void foovm(int x[const *])
|
|
{
|
|
x[2] = 1;
|
|
}
|
|
#endif
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|