2021-03-30 15:26:26 +08:00
|
|
|
[test_atomic_compare_exchange]
|
|
|
|
1 99 77
|
|
|
|
0 80 80
|
2022-10-17 00:51:56 +08:00
|
|
|
85 33 80
|
|
|
|
90 66 80
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_store]
|
|
|
|
r = 12, i = 24
|
|
|
|
|
|
|
|
[test_atomic_store_pointer]
|
|
|
|
*p = 2
|
|
|
|
|
|
|
|
[test_atomic_store_struct]
|
|
|
|
1 2 3 4
|
|
|
|
|
2022-10-17 00:51:56 +08:00
|
|
|
[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
|
|
|
|
|
2021-03-30 15:26:26 +08:00
|
|
|
[test_atomic_error_1]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:176: error: pointer expected
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_error_2]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:183: error: integral or integer-sized pointer target type expected
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_error_3]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:190: error: integral or integer-sized pointer target type expected
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_error_4]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:198: error: pointer target type mismatch in argument 2
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_warn_1]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:206: warning: assignment makes integer from pointer without a cast
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_warn_2]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:216: warning: assignment from incompatible pointer type
|
2021-03-30 15:26:26 +08:00
|
|
|
|
|
|
|
[test_atomic_warn_3]
|
2022-10-17 00:51:56 +08:00
|
|
|
125_atomic_misc.c:224: warning: assignment of read-only location
|