port: expand VC6 C89 core frontier

This commit is contained in:
RayPals
2026-10-03 17:47:57 +00:00
parent 9221a2ee0e
commit 35caf1a558
15 changed files with 5972 additions and 11 deletions
@@ -9945,6 +9945,66 @@ else
bad "frameobject frame_getlocals C89 declaration and ownership order"
fi
if python3 "$REPO_ROOT/scripts/vc6-funcobject-c89.test.py" "$REPO_ROOT/cpython/Objects/funcobject.c"; then
pass "funcobject C89 declarations preserve function-construction ownership order"
else
bad "funcobject C89 declarations preserve function-construction ownership order"
fi
if python3 "$REPO_ROOT/scripts/vc6-genericaliasobject-c89.test.py" "$REPO_ROOT/cpython/Objects/genericaliasobject.c" "$REPO_ROOT/cpython/Objects/object.c"; then
pass "genericaliasobject C89 declarations preserve writer and ownership order"
else
bad "genericaliasobject C89 declarations preserve writer and ownership order"
fi
if python3 "$REPO_ROOT/scripts/vc6-genobject-c89.test.py" "$REPO_ROOT/cpython/Objects/genobject.c"; then
pass "genobject generator traversal C89 declaration and error order"
else
bad "genobject generator traversal C89 declaration and error order"
fi
if python3 "$REPO_ROOT/scripts/vc6-interpreteridobject-c89.test.py" "$REPO_ROOT/cpython/Objects/interpreteridobject.c"; then
pass "interpreteridobject C89 declarations and ownership order"
else
bad "interpreteridobject C89 declarations and ownership order"
fi
if python3 "$REPO_ROOT/scripts/vc6-iterobject-c89.test.py" "$REPO_ROOT/cpython/Objects/iterobject.c"; then
pass "iterobject anextawaitable C89 declarations and reference order"
else
bad "iterobject anextawaitable C89 declarations and reference order"
fi
if python3 "$REPO_ROOT/scripts/vc6-listobject-c89.test.py" "$REPO_ROOT/cpython/Objects/listobject.c"; then
pass "listobject C89 declarations preserve allocation and ownership order"
else
bad "listobject C89 declarations preserve allocation and ownership order"
fi
if python3 "$REPO_ROOT/scripts/vc6-longobject-c89.test.py" "$REPO_ROOT/cpython/Objects/longobject.c"; then
pass "longobject C89 declarations preserve allocation and evaluation order"
else
bad "longobject C89 declarations preserve allocation and evaluation order"
fi
if python3 "$REPO_ROOT/scripts/vc6-memoryobject-c89.test.py" "$REPO_ROOT/cpython/Objects/memoryobject.c"; then
pass "memoryobject VC6 C89 declarations and native-format type spellings"
else
bad "memoryobject VC6 C89 declarations and native-format type spellings"
fi
if python3 "$REPO_ROOT/scripts/vc6-methodobject-c89.test.py" "$REPO_ROOT/cpython/Objects/methodobject.c"; then
pass "methodobject VC6 C89 declarations and type initialization"
else
bad "methodobject VC6 C89 declarations and type initialization"
fi
if python3 "$REPO_ROOT/scripts/vc6-moduleobject-c89.test.py" "$REPO_ROOT/cpython/Objects/moduleobject.c"; then
pass "moduleobject VC6 C89 declarations and evaluation order"
else
bad "moduleobject VC6 C89 declarations and evaluation order"
fi
if [ "$fail" -ne 0 ]; then
echo "FAILED"
exit 1