[Compiler] Bitfield Types (#146)

* add the ability to define and read bitfield types

* new set

* add bitfield setting

* add static bitfields
This commit is contained in:
water111
2020-11-29 18:01:30 -05:00
committed by GitHub
parent 4138e5d852
commit 21fbdce7aa
26 changed files with 819 additions and 100 deletions
+6 -1
View File
@@ -227,10 +227,15 @@ TEST_F(ArithmeticTests, NestedFunctionCall) {
runner.run_static_test(env, testCategory, "nested-function.static.gc", {"10\n"});
}
TEST_F(ArithmeticTests, ShiftOperations) {
TEST_F(ArithmeticTests, VariableShift) {
runner.run_static_test(env, testCategory, "shiftvs.static.gc", {"11\n"});
}
TEST_F(ArithmeticTests, FixedShift) {
// same math as the variable shift test, just using the fixed shift operators.
runner.run_static_test(env, testCategory, "shift-fixed.static.gc", {"11\n"});
}
TEST_F(ArithmeticTests, Subtraction) {
runner.run_static_test(env, testCategory, "subtract-1.static.gc", {"4\n"});
runner.run_static_test(env, testCategory, "subtract-2.static.gc", {"4\n"});