文件
Paze-C-CPP-Compiler/tests/tests2/125_atomic_misc.expect
T
Paze AI 251ee470bf feat: Paze C Compiler - 完整改造自 tcc 0.9.28rc
- 所有 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 可以编译自身
2026-08-16 13:30:01 +08:00

60 行
1.2 KiB
Plaintext

[test_atomic_compare_exchange]
1 99 77
0 80 80
85 33 80
90 66 80
[test_atomic_store]
r = 12, i = 24
[test_atomic_store_pointer]
*p = 2
[test_atomic_store_struct]
1 2 3 4
[test_atomic_op]
fetch_add: SUCCESS
fetch_sub: SUCCESS
fetch_or: SUCCESS
fetch_xor: SUCCESS
fetch_and: SUCCESS
[test_atomic_op2]
fetch_add: SUCCESS
fetch_sub: SUCCESS
fetch_or: SUCCESS
fetch_xor: SUCCESS
fetch_and: SUCCESS
fetch_nand: SUCCESS
add_fetch: SUCCESS
sub_fetch: SUCCESS
or_fetch: SUCCESS
xor_fetch: SUCCESS
and_fetch: SUCCESS
nand_fetch: SUCCESS
[test_atomic_thread_signal]
1
[test_atomic_error_1]
125_atomic_misc.c:156: error: pointer expected
[test_atomic_error_2]
125_atomic_misc.c:163: error: integral or integer-sized pointer target type expected
[test_atomic_error_3]
125_atomic_misc.c:170: error: integral or integer-sized pointer target type expected
[test_atomic_error_4]
125_atomic_misc.c:178: error: pointer target type mismatch in argument 2
[test_atomic_warn_1]
125_atomic_misc.c:186: warning: assignment makes integer from pointer without a cast
[test_atomic_warn_2]
125_atomic_misc.c:196: warning: assignment from incompatible pointer type
[test_atomic_warn_3]
125_atomic_misc.c:204: warning: assignment of read-only location