This commit is contained in:
blueloveTH 2023-07-30 20:20:04 +08:00
parent 7759b50d3e
commit da22348c70
2 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,12 @@ python3 prebuild.py
SRC=$(find src/ -name "*.cpp") SRC=$(find src/ -name "*.cpp")
clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl
python3 scripts/run_tests.py python3 scripts/run_tests.py
# if prev error exit
if [ $? -ne 0 ]; then
exit 1
fi
rm -rf .coverage rm -rf .coverage
mkdir .coverage mkdir .coverage
UNITS=$(find ./ -name "*.gcno") UNITS=$(find ./ -name "*.gcno")

View File

@ -32,7 +32,7 @@ import c
c_int_1 = c.refl("int") c_int_1 = c.refl("int")
c_struct_1 = c_int_1() c_struct_1 = c_int_1()
assert (c_int_1() == c_int_1()) == False assert (c_int_1() == c_int_1())
assert (c_struct_1 == c_struct_1) == True assert (c_struct_1 == c_struct_1) == True
# ------------------------------------------------ # ------------------------------------------------