├── .clang-format ├── .clang-format-ignore ├── .clang-tidy ├── .clangd ├── .github └── workflows │ ├── jcc-site.yml │ ├── macos-aarch64.yml │ ├── macos-x86_64.yml │ ├── ubuntu-aarch64.yml │ ├── ubuntu-riscv.yml │ └── ubuntu-x86_64.yml ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── docs ├── README.md ├── assets │ └── bad_literals.png ├── general.md ├── integers.md ├── known_issues.md ├── memory.md ├── parse.md ├── regalloc.md └── typechk.md ├── jcc.sh ├── scripts ├── benchmark.sh ├── build.sh ├── install.sh ├── prereqs.sh ├── profile.sh └── test.sh ├── src ├── aarch64.c ├── aarch64.h ├── aarch64 │ ├── codegen.c │ ├── codegen.h │ ├── emit.c │ ├── emit.h │ ├── emitter.c │ ├── emitter.h │ ├── isa.h │ ├── lower.c │ └── lower.h ├── alloc.c ├── alloc.h ├── ap_val.c ├── ap_val.h ├── args.c ├── args.h ├── argspec.h ├── bit_twiddle.h ├── bitset.c ├── bitset.h ├── builtins.c ├── builtins.h ├── codegen.c ├── codegen.h ├── compiler.c ├── compiler.h ├── compinfo.h ├── deque.c ├── deque.h ├── diagnostics.c ├── diagnostics.h ├── disasm.c ├── disasm.h ├── driver.c ├── driver.h ├── eep.c ├── eep.h ├── eep │ ├── README.md │ ├── codegen.c │ ├── codegen.h │ ├── disasm.c │ ├── disasm.h │ ├── emit.c │ ├── emit.h │ ├── emitter.c │ ├── emitter.h │ ├── isa.h │ ├── lower.c │ ├── lower.h │ ├── object.c │ └── object.h ├── emit.h ├── fcache.c ├── fcache.h ├── fs.c ├── fs.h ├── graphcol.c ├── graphcol.h ├── graphwriter.c ├── graphwriter.h ├── hash.c ├── hash.h ├── hashtbl.c ├── hashtbl.h ├── io.c ├── io.h ├── ir │ ├── build.c │ ├── build.h │ ├── eliminate_phi.c │ ├── eliminate_phi.h │ ├── interp.c │ ├── interp.h │ ├── ir.c │ ├── ir.h │ ├── prettyprint.c │ ├── prettyprint.h │ ├── rw.c │ ├── rw.h │ ├── validate.c │ ├── validate.h │ ├── var_refs.c │ └── var_refs.h ├── json.c ├── json.h ├── lex.c ├── lex.h ├── linux │ ├── elf.c │ ├── elf.h │ ├── elf_types.h │ ├── link.c │ └── link.h ├── liveness.c ├── liveness.h ├── log.c ├── log.h ├── lower.c ├── lower.h ├── lsp │ ├── ctx.h │ ├── lsp.c │ ├── lsp.h │ ├── lsp_types.c │ ├── lsp_types.h │ ├── map.c │ └── map.h ├── lsra.c ├── lsra.h ├── macos │ ├── link.c │ ├── link.h │ ├── mach-o.c │ ├── mach-o.h │ └── mach-o_types.h ├── main.c ├── opts │ ├── cnst_branches.c │ ├── cnst_branches.h │ ├── cnst_fold.c │ ├── cnst_fold.h │ ├── inline.c │ ├── inline.h │ ├── instr_comb.c │ ├── instr_comb.h │ ├── opts.c │ ├── opts.h │ ├── promote.c │ └── promote.h ├── parse.c ├── parse.h ├── preproc.c ├── preproc.h ├── profile.c ├── profile.h ├── program.c ├── program.h ├── rv32i.c ├── rv32i.h ├── rv32i │ ├── codegen.c │ ├── codegen.h │ ├── emit.c │ ├── emit.h │ ├── emitter.c │ ├── emitter.h │ ├── isa.h │ ├── lower.c │ ├── lower.h │ ├── object.c │ └── object.h ├── syscmd.c ├── syscmd.h ├── target.h ├── test.c ├── thrd.c ├── thrd.h ├── typechk.c ├── typechk.h ├── util.c ├── util.h ├── var_table.c ├── var_table.h ├── vector.c ├── vector.h ├── x64.c ├── x64.h └── x64 │ ├── codegen.c │ ├── codegen.h │ ├── emit.c │ ├── emit.h │ ├── emitter.c │ ├── emitter.h │ ├── isa.h │ ├── lower.c │ └── lower.h └── tests ├── 64_bit.c ├── aarch64_lower.c ├── add.c ├── addsub.c ├── advanced_decl.c ├── anonymous.c ├── array.c ├── array_access.c ├── array_init.c ├── array_inline_init.c ├── array_param.c ├── attribute.c ├── big_complex_maths.c ├── bitfield.c ├── bitfield_packed.c ├── bitwise.c ├── bool.c ├── brackets.c ├── c-testsuite ├── 00001.c ├── 00001.c.expected ├── 00002.c ├── 00002.c.expected ├── 00003.c ├── 00003.c.expected ├── 00004.c ├── 00004.c.expected ├── 00005.c ├── 00005.c.expected ├── 00006.c ├── 00006.c.expected ├── 00007.c ├── 00007.c.expected ├── 00008.c ├── 00008.c.expected ├── 00009.c ├── 00009.c.expected ├── 00010.c ├── 00010.c.expected ├── 00011.c ├── 00011.c.expected ├── 00012.c ├── 00012.c.expected ├── 00013.c ├── 00013.c.expected ├── 00014.c ├── 00014.c.expected ├── 00015.c ├── 00015.c.expected ├── 00016.c ├── 00016.c.expected ├── 00017.c ├── 00017.c.expected ├── 00018.c ├── 00018.c.expected ├── 00019.c ├── 00019.c.expected ├── 00020.c ├── 00020.c.expected ├── 00021.c ├── 00021.c.expected ├── 00022.c ├── 00022.c.expected ├── 00023.c ├── 00023.c.expected ├── 00024.c ├── 00024.c.expected ├── 00025.c ├── 00025.c.expected ├── 00026.c ├── 00026.c.expected ├── 00027.c ├── 00027.c.expected ├── 00028.c ├── 00028.c.expected ├── 00029.c ├── 00029.c.expected ├── 00030.c ├── 00030.c.expected ├── 00031.c ├── 00031.c.expected ├── 00032.c ├── 00032.c.expected ├── 00033.c ├── 00033.c.expected ├── 00034.c ├── 00034.c.expected ├── 00035.c ├── 00035.c.expected ├── 00036.c ├── 00036.c.expected ├── 00037.c ├── 00037.c.expected ├── 00038.c ├── 00038.c.expected ├── 00039.c ├── 00039.c.expected ├── 00040.c ├── 00040.c.expected ├── 00041.c ├── 00041.c.expected ├── 00042.c ├── 00042.c.expected ├── 00043.c ├── 00043.c.expected ├── 00044.c ├── 00044.c.expected ├── 00045.c ├── 00045.c.expected ├── 00046.c ├── 00046.c.expected ├── 00047.c ├── 00047.c.expected ├── 00048.c ├── 00048.c.expected ├── 00049.c ├── 00049.c.expected ├── 00050.c ├── 00050.c.expected ├── 00051.c ├── 00051.c.expected ├── 00052.c ├── 00052.c.expected ├── 00053.c ├── 00053.c.expected ├── 00054.c ├── 00054.c.expected ├── 00055.c ├── 00055.c.expected ├── 00056.c ├── 00056.c.expected ├── 00057.c ├── 00057.c.expected ├── 00058.c ├── 00058.c.expected ├── 00059.c ├── 00059.c.expected ├── 00060.c ├── 00060.c.expected ├── 00061.c ├── 00061.c.expected ├── 00062.c ├── 00062.c.expected ├── 00063.c ├── 00063.c.expected ├── 00064.c ├── 00064.c.expected ├── 00065.c ├── 00065.c.expected ├── 00066.c ├── 00066.c.expected ├── 00067.c ├── 00067.c.expected ├── 00068.c ├── 00068.c.expected ├── 00069.c ├── 00069.c.expected ├── 00070.c ├── 00070.c.expected ├── 00071.c ├── 00071.c.expected ├── 00072.c ├── 00072.c.expected ├── 00073.c ├── 00073.c.expected ├── 00074.c ├── 00074.c.expected ├── 00075.c ├── 00075.c.expected ├── 00076.c ├── 00076.c.expected ├── 00077.c ├── 00077.c.expected ├── 00078.c ├── 00078.c.expected ├── 00079.c ├── 00079.c.expected ├── 00080.c ├── 00080.c.expected ├── 00081.c ├── 00081.c.expected ├── 00082.c ├── 00082.c.expected ├── 00083.c ├── 00083.c.expected ├── 00084.c ├── 00084.c.expected ├── 00085.c ├── 00085.c.expected ├── 00086.c ├── 00086.c.expected ├── 00087.c ├── 00087.c.expected ├── 00088.c ├── 00088.c.expected ├── 00089.c ├── 00089.c.expected ├── 00090.c ├── 00090.c.expected ├── 00091.c ├── 00091.c.expected ├── 00092.c ├── 00092.c.expected ├── 00093.c ├── 00093.c.expected ├── 00094.c ├── 00094.c.expected ├── 00095.c ├── 00095.c.expected ├── 00096.c ├── 00096.c.expected ├── 00097.c ├── 00097.c.expected ├── 00098.c ├── 00098.c.expected ├── 00099.c ├── 00099.c.expected ├── 00100.c ├── 00100.c.expected ├── 00101.c ├── 00101.c.expected ├── 00102.c ├── 00102.c.expected ├── 00103.c ├── 00103.c.expected ├── 00104.c ├── 00104.c.expected ├── 00105.c ├── 00105.c.expected ├── 00106.c ├── 00106.c.expected ├── 00107.c ├── 00107.c.expected ├── 00108.c ├── 00108.c.expected ├── 00109.c ├── 00109.c.expected ├── 00110.c ├── 00110.c.expected ├── 00111.c ├── 00111.c.expected ├── 00112.c ├── 00112.c.expected ├── 00113.c ├── 00113.c.expected ├── 00114.c ├── 00114.c.expected ├── 00115.c ├── 00115.c.expected ├── 00116.c ├── 00116.c.expected ├── 00117.c ├── 00117.c.expected ├── 00118.c ├── 00118.c.expected ├── 00119.c ├── 00119.c.expected ├── 00120.c ├── 00120.c.expected ├── 00121.c ├── 00121.c.expected ├── 00122.c ├── 00122.c.expected ├── 00123.c ├── 00123.c.expected ├── 00124.c ├── 00124.c.expected ├── 00125.c ├── 00125.c.expected ├── 00126.c ├── 00126.c.expected ├── 00127.c ├── 00127.c.expected ├── 00128.c ├── 00128.c.expected ├── 00129.c ├── 00129.c.expected ├── 00130.c ├── 00130.c.expected ├── 00131.c ├── 00131.c.expected ├── 00132.c ├── 00132.c.expected ├── 00133.c ├── 00133.c.expected ├── 00134.c ├── 00134.c.expected ├── 00135.c ├── 00135.c.expected ├── 00136.c ├── 00136.c.expected ├── 00137.c ├── 00137.c.expected ├── 00138.c ├── 00138.c.expected ├── 00139.c ├── 00139.c.expected ├── 00140.c ├── 00140.c.expected ├── 00141.c ├── 00141.c.expected ├── 00142.c ├── 00142.c.expected ├── 00143.c ├── 00143.c.expected ├── 00144.c ├── 00144.c.expected ├── 00145.c ├── 00145.c.expected ├── 00146.c ├── 00146.c.expected ├── 00147.c ├── 00147.c.expected ├── 00148.c ├── 00148.c.expected ├── 00149.c ├── 00149.c.expected ├── 00150.c ├── 00150.c.expected ├── 00151.c ├── 00151.c.expected ├── 00152.c ├── 00152.c.expected ├── 00153.c ├── 00153.c.expected ├── 00154.c ├── 00154.c.expected ├── 00155.c ├── 00155.c.expected ├── 00156.c ├── 00156.c.expected ├── 00157.c ├── 00157.c.expected ├── 00158.c ├── 00158.c.expected ├── 00159.c ├── 00159.c.expected ├── 00160.c ├── 00160.c.expected ├── 00161.c ├── 00161.c.expected ├── 00162.c ├── 00162.c.expected ├── 00163.c ├── 00163.c.expected ├── 00164.c ├── 00164.c.expected ├── 00165.c ├── 00165.c.expected ├── 00166.c ├── 00166.c.expected ├── 00167.c ├── 00167.c.expected ├── 00168.c ├── 00168.c.expected ├── 00169.c ├── 00169.c.expected ├── 00170.c ├── 00170.c.expected ├── 00171.c ├── 00171.c.expected ├── 00172.c ├── 00172.c.expected ├── 00173.c ├── 00173.c.expected ├── 00174.c ├── 00174.c.expected ├── 00175.c ├── 00175.c.expected ├── 00176.c ├── 00176.c.expected ├── 00177.c ├── 00177.c.expected ├── 00178.c ├── 00178.c.expected ├── 00179.c ├── 00179.c.expected ├── 00180.c ├── 00180.c.expected ├── 00181.c ├── 00181.c.expected ├── 00182.c ├── 00182.c.expected ├── 00183.c ├── 00183.c.expected ├── 00184.c ├── 00184.c.expected ├── 00185.c ├── 00185.c.expected ├── 00186.c ├── 00186.c.expected ├── 00187.c ├── 00187.c.expected ├── 00188.c ├── 00188.c.expected ├── 00189.c ├── 00189.c.expected ├── 00190.c ├── 00190.c.expected ├── 00191.c ├── 00191.c.expected ├── 00192.c ├── 00192.c.expected ├── 00193.c ├── 00193.c.expected ├── 00194.c ├── 00194.c.expected ├── 00195.c ├── 00195.c.expected ├── 00196.c ├── 00196.c.expected ├── 00197.c ├── 00197.c.expected ├── 00198.c ├── 00198.c.expected ├── 00199.c ├── 00199.c.expected ├── 00200.c ├── 00200.c.expected ├── 00201.c ├── 00201.c.expected ├── 00202.c ├── 00202.c.expected ├── 00203.c ├── 00203.c.expected ├── 00204.c ├── 00204.c.expected ├── 00205.c ├── 00205.c.expected ├── 00206.c ├── 00206.c.expected ├── 00207.c ├── 00207.c.expected ├── 00208.c ├── 00208.c.expected ├── 00209.c ├── 00209.c.expected ├── 00210.c ├── 00210.c.expected ├── 00211.c ├── 00211.c.expected ├── 00212.c ├── 00212.c.expected ├── 00213.c ├── 00213.c.expected ├── 00214.c ├── 00214.c.expected ├── 00215.c ├── 00215.c.expected ├── 00216.c ├── 00216.c.expected ├── 00217.c ├── 00217.c.expected ├── 00218.c ├── 00218.c.expected ├── 00219.c ├── 00219.c.expected ├── 00220.c ├── 00220.c.expected └── LICENSE ├── c_exit_call.c ├── call_multi_func.c ├── cast.c ├── char_literals.c ├── cmp_zero.c ├── compare.c ├── complex_decls.c ├── compound_assg.c ├── compound_expr.c ├── compound_expr_stmt.c ├── compound_literal.c ├── compound_literal_and_init_list.c ├── compound_literal_scalar.c ├── cross_func_vars.c ├── decl.c ├── decl_shadow.c ├── defer.c ├── define.c ├── deref.c ├── designated.c ├── do_while.c ├── duffy.c ├── eep ├── mov_add_sub.c ├── mul.c ├── mul_asm.ram ├── mul_asm.txt └── mul_instr.c ├── empty.bin ├── empty.c ├── enum.c ├── eq.c ├── eq_var.c ├── escape_string.c ├── explicit_enum.c ├── extern_incomplete.c ├── fallthrough.c ├── fancy_pointer.c ├── fib.c ├── find_todo_tests.sh ├── float.c ├── float_arith.c ├── float_compare.c ├── float_if.c ├── flow.c ├── for.c ├── func.c ├── func_glb.c ├── func_pointer.c ├── func_var.c ├── generic.c ├── globals.c ├── half.c ├── hello_world.c ├── if.c ├── if_assign.c ├── if_else.c ├── if_else_assign.c ├── if_else_vars.c ├── implicit_addr.c ├── inc.c ├── inc_pointer.c ├── include.c ├── include.h ├── incomplete.c ├── init_list_arr.c ├── init_list_sub.c ├── init_lists.c ├── int_literal_types.c ├── integer_const_expr.c ├── langproc ├── _example │ ├── example.c │ └── example_driver.c ├── array │ ├── declare_global.c │ ├── declare_global_driver.c │ ├── declare_local.c │ ├── declare_local_driver.c │ ├── index_constant.c │ ├── index_constant_driver.c │ ├── index_expression.c │ ├── index_expression_driver.c │ ├── index_variable.c │ └── index_variable_driver.c ├── control_flow │ ├── for_multiple.c │ ├── for_multiple_driver.c │ ├── for_one.c │ ├── for_one_driver.c │ ├── for_zero_v1.c │ ├── for_zero_v1_driver.c │ ├── for_zero_v2.c │ ├── for_zero_v2_driver.c │ ├── if_else_false.c │ ├── if_else_false_driver.c │ ├── if_else_true.c │ ├── if_else_true_driver.c │ ├── if_false.c │ ├── if_false_driver.c │ ├── if_true.c │ ├── if_true_driver.c │ ├── sequence.c │ ├── sequence_driver.c │ ├── while_multiple.c │ ├── while_multiple_driver.c │ ├── while_once.c │ ├── while_once_driver.c │ ├── while_zero.c │ └── while_zero_driver.c ├── default │ ├── test_ADD0.c │ ├── test_ADD0_driver.c │ ├── test_ADD1.c │ ├── test_ADD1_driver.c │ ├── test_CALL.c │ ├── test_CALL_driver.c │ ├── test_LOCAL.c │ └── test_LOCAL_driver.c ├── float │ ├── add.c │ ├── add_double.c │ ├── add_double_driver.c │ ├── add_driver.c │ ├── add_mul.c │ ├── add_mul_driver.c │ ├── mul.c │ ├── mul_add.c │ ├── mul_add_driver.c │ ├── mul_double.c │ ├── mul_double_driver.c │ ├── mul_driver.c │ ├── pow.c │ └── pow_driver.c ├── functions │ ├── call_constant_external.c │ ├── call_constant_external_driver.c │ ├── call_constant_internal.c │ ├── call_constant_internal_driver.c │ ├── call_five_args_external.c │ ├── call_five_args_external_driver.c │ ├── call_five_args_internal.c │ ├── call_five_args_internal_driver.c │ ├── call_identity_external.c │ ├── call_identity_external_driver.c │ ├── call_identity_internal.c │ ├── call_identity_internal_driver.c │ ├── call_mutual_recursive.c │ ├── call_mutual_recursive_driver.c │ ├── call_recursive_internal.c │ ├── call_recursive_internal_driver.c │ ├── call_two_args_external.c │ ├── call_two_args_external_driver.c │ ├── call_two_args_internal.c │ └── call_two_args_internal_driver.c ├── integer │ ├── add.c │ ├── add_driver.c │ ├── bitwise_and.c │ ├── bitwise_and_driver.c │ ├── bitwise_or.c │ ├── bitwise_or_driver.c │ ├── bitwise_xor.c │ ├── bitwise_xor_driver.c │ ├── div.c │ ├── div_driver.c │ ├── equal.c │ ├── equal_driver.c │ ├── less_than.c │ ├── less_than_driver.c │ ├── less_than_equal.c │ ├── less_than_equal_driver.c │ ├── logical_and.c │ ├── logical_and_driver.c │ ├── logical_or.c │ ├── logical_or_driver.c │ ├── mul.c │ ├── mul_driver.c │ ├── sub.c │ └── sub_driver.c ├── local_var │ ├── constant_initialiser.c │ ├── constant_initialiser_driver.c │ ├── dual_var.c │ ├── dual_var_driver.c │ ├── expression_initialiser.c │ ├── expression_initialiser_driver.c │ ├── identity.c │ ├── identity_driver.c │ ├── scoped_var.c │ ├── scoped_var_driver.c │ ├── single_var.c │ └── single_var_driver.c ├── misc │ ├── enum1.c │ ├── enum1_driver.c │ ├── enum2.c │ ├── enum2_driver.c │ ├── switch1.c │ ├── switch1_driver.c │ ├── switch2.c │ ├── switch2_driver.c │ ├── typedef1.c │ ├── typedef1_driver.c │ ├── typedef2.c │ └── typedef2_driver.c ├── pointer │ ├── addressof.c │ ├── addressof_driver.c │ ├── arithmetic.c │ ├── arithmetic_driver.c │ ├── assign.c │ ├── assign_driver.c │ ├── dereference.c │ ├── dereference_driver.c │ ├── index.c │ └── index_driver.c ├── programs │ ├── fibonacci.c │ ├── fibonacci_driver.c │ ├── multiply.c │ ├── multiply_driver.c │ ├── sqrt.c │ └── sqrt_driver.c ├── strings │ ├── chliteral.c │ ├── chliteral_driver.c │ ├── escaped.c │ ├── escaped_driver.c │ ├── literal.c │ ├── literal_driver.c │ ├── puts.c │ ├── puts_driver.c │ ├── search.c │ └── search_driver.c ├── struct │ ├── sizeof.c │ ├── sizeof_driver.c │ ├── struct_inst.c │ ├── struct_inst_driver.c │ ├── struct_member_get.c │ ├── struct_member_get_driver.c │ ├── struct_member_set.c │ ├── struct_member_set_driver.c │ ├── struct_two_members.c │ └── struct_two_members_driver.c └── types │ ├── sizeof_char_inst.c │ ├── sizeof_char_inst_driver.c │ ├── sizeof_char_type.c │ ├── sizeof_char_type_driver.c │ ├── sizeof_int_inst.c │ ├── sizeof_int_inst_driver.c │ ├── sizeof_int_type.c │ ├── sizeof_int_type_driver.c │ ├── unsigned.c │ └── unsigned_driver.c ├── literals.c ├── local_static.c ├── logical.c ├── logical_and.c ├── macro_fn.c ├── many_args.c ├── math.c ├── md_array.c ├── memset.c ├── mixed_fp_ret.c ├── mul.c ├── multi_function.c ├── multi_if_else.c ├── multi_line_comment.c ├── negative.c ├── nested_struct.c ├── no_ret.c ├── null_char.c ├── offsetof.c ├── pointer.c ├── pointer_access.c ├── pointer_add.c ├── pointer_sub.c ├── popcnt.c ├── postfix.c ├── preproc.c ├── preproc_nested_if.c ├── preproc_nl.c ├── preproc_prescan.c ├── preproc_punctuator.c ├── preproc_ternary.c ├── printf_format.c ├── printf_string.c ├── programs ├── bf.c ├── donut.c ├── mandelbrot.c ├── mandelbrot_no_str.c └── maze.c ├── promote_phi.c ├── ptr_global.c ├── pythag.c ├── recursive_struct.c ├── reg_pressure.c ├── reg_pressure_extreme.c ├── sdiv.c ├── sext.c ├── single_line_comment.c ├── sizeof_ambigous.c ├── sizeof_expr.c ├── sizeof_ty.c ├── special.c ├── spill.c ├── sqrt.c ├── squot.c ├── static_assert.c ├── static_assert_fail.c ├── static_func.c ├── str_array.c ├── str_concat.c ├── str_global.c ├── str_index.c ├── struct.c ├── struct_arg.c ├── struct_inline_init.c ├── struct_move.c ├── struct_ret.c ├── sub.c ├── switch.c ├── ternary.c ├── typedef.c ├── typedef2.c ├── typedef_complex.c ├── typedef_duplicate.c ├── typeof.c ├── udiv.c ├── uninit_pointer.c ├── union.c ├── union_struct_nested.c ├── uquot.c ├── utf8.c ├── va_arg.c ├── va_list.c ├── variadic.c ├── vec2_add.c ├── vec2i_add.c ├── vec3 └── main.c ├── vec3_add.c ├── void_cast.c ├── while.c ├── while_complex.c ├── wide_char.c └── x_macro_fn.c /.clang-format: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.clang-format -------------------------------------------------------------------------------- /.clang-format-ignore: -------------------------------------------------------------------------------- 1 | tests/* 2 | -------------------------------------------------------------------------------- /.clang-tidy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.clang-tidy -------------------------------------------------------------------------------- /.clangd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.clangd -------------------------------------------------------------------------------- /.github/workflows/jcc-site.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.github/workflows/jcc-site.yml -------------------------------------------------------------------------------- /.github/workflows/macos-aarch64.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.github/workflows/macos-aarch64.yml -------------------------------------------------------------------------------- /.github/workflows/macos-x86_64.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.github/workflows/macos-x86_64.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu-aarch64.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.github/workflows/ubuntu-aarch64.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu-riscv.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.github/workflows/ubuntu-riscv.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu-x86_64.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.github/workflows/ubuntu-x86_64.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/README.md -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/README.md -------------------------------------------------------------------------------- /docs/assets/bad_literals.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/assets/bad_literals.png -------------------------------------------------------------------------------- /docs/general.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/general.md -------------------------------------------------------------------------------- /docs/integers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/integers.md -------------------------------------------------------------------------------- /docs/known_issues.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/known_issues.md -------------------------------------------------------------------------------- /docs/memory.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/memory.md -------------------------------------------------------------------------------- /docs/parse.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/parse.md -------------------------------------------------------------------------------- /docs/regalloc.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/regalloc.md -------------------------------------------------------------------------------- /docs/typechk.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/docs/typechk.md -------------------------------------------------------------------------------- /jcc.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/jcc.sh -------------------------------------------------------------------------------- /scripts/benchmark.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/scripts/benchmark.sh -------------------------------------------------------------------------------- /scripts/build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/scripts/build.sh -------------------------------------------------------------------------------- /scripts/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/scripts/install.sh -------------------------------------------------------------------------------- /scripts/prereqs.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/scripts/prereqs.sh -------------------------------------------------------------------------------- /scripts/profile.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/scripts/profile.sh -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/scripts/test.sh -------------------------------------------------------------------------------- /src/aarch64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64.c -------------------------------------------------------------------------------- /src/aarch64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64.h -------------------------------------------------------------------------------- /src/aarch64/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/codegen.c -------------------------------------------------------------------------------- /src/aarch64/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/codegen.h -------------------------------------------------------------------------------- /src/aarch64/emit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/emit.c -------------------------------------------------------------------------------- /src/aarch64/emit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/emit.h -------------------------------------------------------------------------------- /src/aarch64/emitter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/emitter.c -------------------------------------------------------------------------------- /src/aarch64/emitter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/emitter.h -------------------------------------------------------------------------------- /src/aarch64/isa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/isa.h -------------------------------------------------------------------------------- /src/aarch64/lower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/lower.c -------------------------------------------------------------------------------- /src/aarch64/lower.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/aarch64/lower.h -------------------------------------------------------------------------------- /src/alloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/alloc.c -------------------------------------------------------------------------------- /src/alloc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/alloc.h -------------------------------------------------------------------------------- /src/ap_val.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ap_val.c -------------------------------------------------------------------------------- /src/ap_val.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ap_val.h -------------------------------------------------------------------------------- /src/args.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/args.c -------------------------------------------------------------------------------- /src/args.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/args.h -------------------------------------------------------------------------------- /src/argspec.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/argspec.h -------------------------------------------------------------------------------- /src/bit_twiddle.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/bit_twiddle.h -------------------------------------------------------------------------------- /src/bitset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/bitset.c -------------------------------------------------------------------------------- /src/bitset.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/bitset.h -------------------------------------------------------------------------------- /src/builtins.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/builtins.c -------------------------------------------------------------------------------- /src/builtins.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/builtins.h -------------------------------------------------------------------------------- /src/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/codegen.c -------------------------------------------------------------------------------- /src/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/codegen.h -------------------------------------------------------------------------------- /src/compiler.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/compiler.c -------------------------------------------------------------------------------- /src/compiler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/compiler.h -------------------------------------------------------------------------------- /src/compinfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/compinfo.h -------------------------------------------------------------------------------- /src/deque.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/deque.c -------------------------------------------------------------------------------- /src/deque.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/deque.h -------------------------------------------------------------------------------- /src/diagnostics.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/diagnostics.c -------------------------------------------------------------------------------- /src/diagnostics.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/diagnostics.h -------------------------------------------------------------------------------- /src/disasm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/disasm.c -------------------------------------------------------------------------------- /src/disasm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/disasm.h -------------------------------------------------------------------------------- /src/driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/driver.c -------------------------------------------------------------------------------- /src/driver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/driver.h -------------------------------------------------------------------------------- /src/eep.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep.c -------------------------------------------------------------------------------- /src/eep.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep.h -------------------------------------------------------------------------------- /src/eep/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/README.md -------------------------------------------------------------------------------- /src/eep/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/codegen.c -------------------------------------------------------------------------------- /src/eep/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/codegen.h -------------------------------------------------------------------------------- /src/eep/disasm.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/disasm.c -------------------------------------------------------------------------------- /src/eep/disasm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/disasm.h -------------------------------------------------------------------------------- /src/eep/emit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/emit.c -------------------------------------------------------------------------------- /src/eep/emit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/emit.h -------------------------------------------------------------------------------- /src/eep/emitter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/emitter.c -------------------------------------------------------------------------------- /src/eep/emitter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/emitter.h -------------------------------------------------------------------------------- /src/eep/isa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/isa.h -------------------------------------------------------------------------------- /src/eep/lower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/lower.c -------------------------------------------------------------------------------- /src/eep/lower.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/lower.h -------------------------------------------------------------------------------- /src/eep/object.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/object.c -------------------------------------------------------------------------------- /src/eep/object.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/eep/object.h -------------------------------------------------------------------------------- /src/emit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/emit.h -------------------------------------------------------------------------------- /src/fcache.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/fcache.c -------------------------------------------------------------------------------- /src/fcache.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/fcache.h -------------------------------------------------------------------------------- /src/fs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/fs.c -------------------------------------------------------------------------------- /src/fs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/fs.h -------------------------------------------------------------------------------- /src/graphcol.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/graphcol.c -------------------------------------------------------------------------------- /src/graphcol.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/graphcol.h -------------------------------------------------------------------------------- /src/graphwriter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/graphwriter.c -------------------------------------------------------------------------------- /src/graphwriter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/graphwriter.h -------------------------------------------------------------------------------- /src/hash.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/hash.c -------------------------------------------------------------------------------- /src/hash.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/hash.h -------------------------------------------------------------------------------- /src/hashtbl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/hashtbl.c -------------------------------------------------------------------------------- /src/hashtbl.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/hashtbl.h -------------------------------------------------------------------------------- /src/io.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/io.c -------------------------------------------------------------------------------- /src/io.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/io.h -------------------------------------------------------------------------------- /src/ir/build.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/build.c -------------------------------------------------------------------------------- /src/ir/build.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/build.h -------------------------------------------------------------------------------- /src/ir/eliminate_phi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/eliminate_phi.c -------------------------------------------------------------------------------- /src/ir/eliminate_phi.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/eliminate_phi.h -------------------------------------------------------------------------------- /src/ir/interp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/interp.c -------------------------------------------------------------------------------- /src/ir/interp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/interp.h -------------------------------------------------------------------------------- /src/ir/ir.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/ir.c -------------------------------------------------------------------------------- /src/ir/ir.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/ir.h -------------------------------------------------------------------------------- /src/ir/prettyprint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/prettyprint.c -------------------------------------------------------------------------------- /src/ir/prettyprint.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/prettyprint.h -------------------------------------------------------------------------------- /src/ir/rw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/rw.c -------------------------------------------------------------------------------- /src/ir/rw.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/rw.h -------------------------------------------------------------------------------- /src/ir/validate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/validate.c -------------------------------------------------------------------------------- /src/ir/validate.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/validate.h -------------------------------------------------------------------------------- /src/ir/var_refs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/var_refs.c -------------------------------------------------------------------------------- /src/ir/var_refs.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/ir/var_refs.h -------------------------------------------------------------------------------- /src/json.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/json.c -------------------------------------------------------------------------------- /src/json.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/json.h -------------------------------------------------------------------------------- /src/lex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lex.c -------------------------------------------------------------------------------- /src/lex.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lex.h -------------------------------------------------------------------------------- /src/linux/elf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/linux/elf.c -------------------------------------------------------------------------------- /src/linux/elf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/linux/elf.h -------------------------------------------------------------------------------- /src/linux/elf_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/linux/elf_types.h -------------------------------------------------------------------------------- /src/linux/link.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/linux/link.c -------------------------------------------------------------------------------- /src/linux/link.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/linux/link.h -------------------------------------------------------------------------------- /src/liveness.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/liveness.c -------------------------------------------------------------------------------- /src/liveness.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/liveness.h -------------------------------------------------------------------------------- /src/log.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/log.c -------------------------------------------------------------------------------- /src/log.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/log.h -------------------------------------------------------------------------------- /src/lower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lower.c -------------------------------------------------------------------------------- /src/lower.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lower.h -------------------------------------------------------------------------------- /src/lsp/ctx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/ctx.h -------------------------------------------------------------------------------- /src/lsp/lsp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/lsp.c -------------------------------------------------------------------------------- /src/lsp/lsp.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/lsp.h -------------------------------------------------------------------------------- /src/lsp/lsp_types.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/lsp_types.c -------------------------------------------------------------------------------- /src/lsp/lsp_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/lsp_types.h -------------------------------------------------------------------------------- /src/lsp/map.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/map.c -------------------------------------------------------------------------------- /src/lsp/map.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsp/map.h -------------------------------------------------------------------------------- /src/lsra.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsra.c -------------------------------------------------------------------------------- /src/lsra.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/lsra.h -------------------------------------------------------------------------------- /src/macos/link.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/macos/link.c -------------------------------------------------------------------------------- /src/macos/link.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/macos/link.h -------------------------------------------------------------------------------- /src/macos/mach-o.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/macos/mach-o.c -------------------------------------------------------------------------------- /src/macos/mach-o.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/macos/mach-o.h -------------------------------------------------------------------------------- /src/macos/mach-o_types.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/macos/mach-o_types.h -------------------------------------------------------------------------------- /src/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/main.c -------------------------------------------------------------------------------- /src/opts/cnst_branches.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/cnst_branches.c -------------------------------------------------------------------------------- /src/opts/cnst_branches.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/cnst_branches.h -------------------------------------------------------------------------------- /src/opts/cnst_fold.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/cnst_fold.c -------------------------------------------------------------------------------- /src/opts/cnst_fold.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/cnst_fold.h -------------------------------------------------------------------------------- /src/opts/inline.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/inline.c -------------------------------------------------------------------------------- /src/opts/inline.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/inline.h -------------------------------------------------------------------------------- /src/opts/instr_comb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/instr_comb.c -------------------------------------------------------------------------------- /src/opts/instr_comb.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/instr_comb.h -------------------------------------------------------------------------------- /src/opts/opts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/opts.c -------------------------------------------------------------------------------- /src/opts/opts.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/opts.h -------------------------------------------------------------------------------- /src/opts/promote.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/promote.c -------------------------------------------------------------------------------- /src/opts/promote.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/opts/promote.h -------------------------------------------------------------------------------- /src/parse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/parse.c -------------------------------------------------------------------------------- /src/parse.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/parse.h -------------------------------------------------------------------------------- /src/preproc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/preproc.c -------------------------------------------------------------------------------- /src/preproc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/preproc.h -------------------------------------------------------------------------------- /src/profile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/profile.c -------------------------------------------------------------------------------- /src/profile.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/profile.h -------------------------------------------------------------------------------- /src/program.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/program.c -------------------------------------------------------------------------------- /src/program.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/program.h -------------------------------------------------------------------------------- /src/rv32i.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i.c -------------------------------------------------------------------------------- /src/rv32i.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i.h -------------------------------------------------------------------------------- /src/rv32i/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/codegen.c -------------------------------------------------------------------------------- /src/rv32i/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/codegen.h -------------------------------------------------------------------------------- /src/rv32i/emit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/emit.c -------------------------------------------------------------------------------- /src/rv32i/emit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/emit.h -------------------------------------------------------------------------------- /src/rv32i/emitter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/emitter.c -------------------------------------------------------------------------------- /src/rv32i/emitter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/emitter.h -------------------------------------------------------------------------------- /src/rv32i/isa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/isa.h -------------------------------------------------------------------------------- /src/rv32i/lower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/lower.c -------------------------------------------------------------------------------- /src/rv32i/lower.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/lower.h -------------------------------------------------------------------------------- /src/rv32i/object.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/object.c -------------------------------------------------------------------------------- /src/rv32i/object.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/rv32i/object.h -------------------------------------------------------------------------------- /src/syscmd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/syscmd.c -------------------------------------------------------------------------------- /src/syscmd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/syscmd.h -------------------------------------------------------------------------------- /src/target.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/target.h -------------------------------------------------------------------------------- /src/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/test.c -------------------------------------------------------------------------------- /src/thrd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/thrd.c -------------------------------------------------------------------------------- /src/thrd.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/thrd.h -------------------------------------------------------------------------------- /src/typechk.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/typechk.c -------------------------------------------------------------------------------- /src/typechk.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/typechk.h -------------------------------------------------------------------------------- /src/util.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/util.c -------------------------------------------------------------------------------- /src/util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/util.h -------------------------------------------------------------------------------- /src/var_table.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/var_table.c -------------------------------------------------------------------------------- /src/var_table.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/var_table.h -------------------------------------------------------------------------------- /src/vector.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/vector.c -------------------------------------------------------------------------------- /src/vector.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/vector.h -------------------------------------------------------------------------------- /src/x64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64.c -------------------------------------------------------------------------------- /src/x64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64.h -------------------------------------------------------------------------------- /src/x64/codegen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/codegen.c -------------------------------------------------------------------------------- /src/x64/codegen.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/codegen.h -------------------------------------------------------------------------------- /src/x64/emit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/emit.c -------------------------------------------------------------------------------- /src/x64/emit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/emit.h -------------------------------------------------------------------------------- /src/x64/emitter.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/emitter.c -------------------------------------------------------------------------------- /src/x64/emitter.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/emitter.h -------------------------------------------------------------------------------- /src/x64/isa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/isa.h -------------------------------------------------------------------------------- /src/x64/lower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/lower.c -------------------------------------------------------------------------------- /src/x64/lower.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/src/x64/lower.h -------------------------------------------------------------------------------- /tests/64_bit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/64_bit.c -------------------------------------------------------------------------------- /tests/aarch64_lower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/aarch64_lower.c -------------------------------------------------------------------------------- /tests/add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/add.c -------------------------------------------------------------------------------- /tests/addsub.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/addsub.c -------------------------------------------------------------------------------- /tests/advanced_decl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/advanced_decl.c -------------------------------------------------------------------------------- /tests/anonymous.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/anonymous.c -------------------------------------------------------------------------------- /tests/array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/array.c -------------------------------------------------------------------------------- /tests/array_access.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/array_access.c -------------------------------------------------------------------------------- /tests/array_init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/array_init.c -------------------------------------------------------------------------------- /tests/array_inline_init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/array_inline_init.c -------------------------------------------------------------------------------- /tests/array_param.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/array_param.c -------------------------------------------------------------------------------- /tests/attribute.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/attribute.c -------------------------------------------------------------------------------- /tests/big_complex_maths.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/big_complex_maths.c -------------------------------------------------------------------------------- /tests/bitfield.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/bitfield.c -------------------------------------------------------------------------------- /tests/bitfield_packed.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/bitfield_packed.c -------------------------------------------------------------------------------- /tests/bitwise.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/bitwise.c -------------------------------------------------------------------------------- /tests/bool.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/bool.c -------------------------------------------------------------------------------- /tests/brackets.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/brackets.c -------------------------------------------------------------------------------- /tests/c-testsuite/00001.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return 0; 5 | } 6 | -------------------------------------------------------------------------------- /tests/c-testsuite/00001.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00002.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return 3-3; 5 | } 6 | -------------------------------------------------------------------------------- /tests/c-testsuite/00002.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00003.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00003.c -------------------------------------------------------------------------------- /tests/c-testsuite/00003.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00004.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00004.c -------------------------------------------------------------------------------- /tests/c-testsuite/00004.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00005.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00005.c -------------------------------------------------------------------------------- /tests/c-testsuite/00005.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00006.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00006.c -------------------------------------------------------------------------------- /tests/c-testsuite/00006.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00007.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00007.c -------------------------------------------------------------------------------- /tests/c-testsuite/00007.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00008.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00008.c -------------------------------------------------------------------------------- /tests/c-testsuite/00008.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00009.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00009.c -------------------------------------------------------------------------------- /tests/c-testsuite/00009.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00010.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00010.c -------------------------------------------------------------------------------- /tests/c-testsuite/00010.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00011.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00011.c -------------------------------------------------------------------------------- /tests/c-testsuite/00011.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00012.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return (2 + 2) * 2 - 8; 5 | } 6 | -------------------------------------------------------------------------------- /tests/c-testsuite/00012.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00013.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00013.c -------------------------------------------------------------------------------- /tests/c-testsuite/00013.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00014.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00014.c -------------------------------------------------------------------------------- /tests/c-testsuite/00014.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00015.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00015.c -------------------------------------------------------------------------------- /tests/c-testsuite/00015.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00016.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00016.c -------------------------------------------------------------------------------- /tests/c-testsuite/00016.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00017.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00017.c -------------------------------------------------------------------------------- /tests/c-testsuite/00017.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00018.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00018.c -------------------------------------------------------------------------------- /tests/c-testsuite/00018.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00019.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00019.c -------------------------------------------------------------------------------- /tests/c-testsuite/00019.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00020.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00020.c -------------------------------------------------------------------------------- /tests/c-testsuite/00020.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00021.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00021.c -------------------------------------------------------------------------------- /tests/c-testsuite/00021.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00022.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00022.c -------------------------------------------------------------------------------- /tests/c-testsuite/00022.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00023.c: -------------------------------------------------------------------------------- 1 | int x; 2 | 3 | int 4 | main() 5 | { 6 | x = 0; 7 | return x; 8 | } 9 | 10 | -------------------------------------------------------------------------------- /tests/c-testsuite/00023.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00024.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00024.c -------------------------------------------------------------------------------- /tests/c-testsuite/00024.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00025.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00025.c -------------------------------------------------------------------------------- /tests/c-testsuite/00025.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00026.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | char *p; 5 | 6 | p = "hello"; 7 | return p[0] - 104; 8 | } 9 | -------------------------------------------------------------------------------- /tests/c-testsuite/00026.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00027.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00027.c -------------------------------------------------------------------------------- /tests/c-testsuite/00027.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00028.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00028.c -------------------------------------------------------------------------------- /tests/c-testsuite/00028.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00029.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00029.c -------------------------------------------------------------------------------- /tests/c-testsuite/00029.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00030.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00030.c -------------------------------------------------------------------------------- /tests/c-testsuite/00030.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00031.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00031.c -------------------------------------------------------------------------------- /tests/c-testsuite/00031.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00032.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00032.c -------------------------------------------------------------------------------- /tests/c-testsuite/00032.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00033.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00033.c -------------------------------------------------------------------------------- /tests/c-testsuite/00033.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00034.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00034.c -------------------------------------------------------------------------------- /tests/c-testsuite/00034.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00035.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00035.c -------------------------------------------------------------------------------- /tests/c-testsuite/00035.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00036.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00036.c -------------------------------------------------------------------------------- /tests/c-testsuite/00036.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00037.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00037.c -------------------------------------------------------------------------------- /tests/c-testsuite/00037.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00038.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00038.c -------------------------------------------------------------------------------- /tests/c-testsuite/00038.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00039.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00039.c -------------------------------------------------------------------------------- /tests/c-testsuite/00039.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00040.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00040.c -------------------------------------------------------------------------------- /tests/c-testsuite/00040.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00041.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00041.c -------------------------------------------------------------------------------- /tests/c-testsuite/00041.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00042.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00042.c -------------------------------------------------------------------------------- /tests/c-testsuite/00042.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00043.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00043.c -------------------------------------------------------------------------------- /tests/c-testsuite/00043.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00044.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00044.c -------------------------------------------------------------------------------- /tests/c-testsuite/00044.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00045.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00045.c -------------------------------------------------------------------------------- /tests/c-testsuite/00045.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00046.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00046.c -------------------------------------------------------------------------------- /tests/c-testsuite/00046.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00047.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00047.c -------------------------------------------------------------------------------- /tests/c-testsuite/00047.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00048.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00048.c -------------------------------------------------------------------------------- /tests/c-testsuite/00048.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00049.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00049.c -------------------------------------------------------------------------------- /tests/c-testsuite/00049.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00050.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00050.c -------------------------------------------------------------------------------- /tests/c-testsuite/00050.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00051.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00051.c -------------------------------------------------------------------------------- /tests/c-testsuite/00051.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00052.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00052.c -------------------------------------------------------------------------------- /tests/c-testsuite/00052.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00053.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00053.c -------------------------------------------------------------------------------- /tests/c-testsuite/00053.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00054.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00054.c -------------------------------------------------------------------------------- /tests/c-testsuite/00054.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00055.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00055.c -------------------------------------------------------------------------------- /tests/c-testsuite/00055.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00056.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00056.c -------------------------------------------------------------------------------- /tests/c-testsuite/00056.c.expected: -------------------------------------------------------------------------------- 1 | 42 2 | 64 3 | 12, 34 4 | -------------------------------------------------------------------------------- /tests/c-testsuite/00057.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00057.c -------------------------------------------------------------------------------- /tests/c-testsuite/00057.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00058.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00058.c -------------------------------------------------------------------------------- /tests/c-testsuite/00058.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00059.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00059.c -------------------------------------------------------------------------------- /tests/c-testsuite/00059.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00060.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00060.c -------------------------------------------------------------------------------- /tests/c-testsuite/00060.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00061.c: -------------------------------------------------------------------------------- 1 | #define FOO 0 2 | 3 | int main() 4 | { 5 | return FOO; 6 | } 7 | 8 | -------------------------------------------------------------------------------- /tests/c-testsuite/00061.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00062.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00062.c -------------------------------------------------------------------------------- /tests/c-testsuite/00062.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00063.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00063.c -------------------------------------------------------------------------------- /tests/c-testsuite/00063.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00064.c: -------------------------------------------------------------------------------- 1 | #define X 6 / 2 2 | 3 | int 4 | main() 5 | { 6 | return X - 3; 7 | } 8 | -------------------------------------------------------------------------------- /tests/c-testsuite/00064.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00065.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00065.c -------------------------------------------------------------------------------- /tests/c-testsuite/00065.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00066.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00066.c -------------------------------------------------------------------------------- /tests/c-testsuite/00066.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00067.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00067.c -------------------------------------------------------------------------------- /tests/c-testsuite/00067.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00068.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00068.c -------------------------------------------------------------------------------- /tests/c-testsuite/00068.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00069.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00069.c -------------------------------------------------------------------------------- /tests/c-testsuite/00069.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00070.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00070.c -------------------------------------------------------------------------------- /tests/c-testsuite/00070.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00071.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00071.c -------------------------------------------------------------------------------- /tests/c-testsuite/00071.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00072.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00072.c -------------------------------------------------------------------------------- /tests/c-testsuite/00072.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00073.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00073.c -------------------------------------------------------------------------------- /tests/c-testsuite/00073.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00074.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00074.c -------------------------------------------------------------------------------- /tests/c-testsuite/00074.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00075.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00075.c -------------------------------------------------------------------------------- /tests/c-testsuite/00075.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00076.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00076.c -------------------------------------------------------------------------------- /tests/c-testsuite/00076.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00077.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00077.c -------------------------------------------------------------------------------- /tests/c-testsuite/00077.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00078.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00078.c -------------------------------------------------------------------------------- /tests/c-testsuite/00078.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00079.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00079.c -------------------------------------------------------------------------------- /tests/c-testsuite/00079.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00080.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00080.c -------------------------------------------------------------------------------- /tests/c-testsuite/00080.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00081.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00081.c -------------------------------------------------------------------------------- /tests/c-testsuite/00081.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00082.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00082.c -------------------------------------------------------------------------------- /tests/c-testsuite/00082.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00083.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00083.c -------------------------------------------------------------------------------- /tests/c-testsuite/00083.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00084.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00084.c -------------------------------------------------------------------------------- /tests/c-testsuite/00084.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00085.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00085.c -------------------------------------------------------------------------------- /tests/c-testsuite/00085.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00086.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00086.c -------------------------------------------------------------------------------- /tests/c-testsuite/00086.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00087.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00087.c -------------------------------------------------------------------------------- /tests/c-testsuite/00087.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00088.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00088.c -------------------------------------------------------------------------------- /tests/c-testsuite/00088.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00089.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00089.c -------------------------------------------------------------------------------- /tests/c-testsuite/00089.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00090.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00090.c -------------------------------------------------------------------------------- /tests/c-testsuite/00090.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00091.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00091.c -------------------------------------------------------------------------------- /tests/c-testsuite/00091.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00092.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00092.c -------------------------------------------------------------------------------- /tests/c-testsuite/00092.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00093.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00093.c -------------------------------------------------------------------------------- /tests/c-testsuite/00093.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00094.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00094.c -------------------------------------------------------------------------------- /tests/c-testsuite/00094.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00095.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00095.c -------------------------------------------------------------------------------- /tests/c-testsuite/00095.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00096.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00096.c -------------------------------------------------------------------------------- /tests/c-testsuite/00096.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00097.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00097.c -------------------------------------------------------------------------------- /tests/c-testsuite/00097.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00098.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return L'\0'; 5 | } 6 | -------------------------------------------------------------------------------- /tests/c-testsuite/00098.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00099.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00099.c -------------------------------------------------------------------------------- /tests/c-testsuite/00099.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00100.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00100.c -------------------------------------------------------------------------------- /tests/c-testsuite/00100.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00101.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00101.c -------------------------------------------------------------------------------- /tests/c-testsuite/00101.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00102.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00102.c -------------------------------------------------------------------------------- /tests/c-testsuite/00102.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00103.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00103.c -------------------------------------------------------------------------------- /tests/c-testsuite/00103.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00104.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00104.c -------------------------------------------------------------------------------- /tests/c-testsuite/00104.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00105.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00105.c -------------------------------------------------------------------------------- /tests/c-testsuite/00105.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00106.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00106.c -------------------------------------------------------------------------------- /tests/c-testsuite/00106.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00107.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00107.c -------------------------------------------------------------------------------- /tests/c-testsuite/00107.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00108.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00108.c -------------------------------------------------------------------------------- /tests/c-testsuite/00108.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00109.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00109.c -------------------------------------------------------------------------------- /tests/c-testsuite/00109.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00110.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00110.c -------------------------------------------------------------------------------- /tests/c-testsuite/00110.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00111.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00111.c -------------------------------------------------------------------------------- /tests/c-testsuite/00111.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00112.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | return "abc" == (void *)0; 5 | } 6 | -------------------------------------------------------------------------------- /tests/c-testsuite/00112.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00113.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00113.c -------------------------------------------------------------------------------- /tests/c-testsuite/00113.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00114.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00114.c -------------------------------------------------------------------------------- /tests/c-testsuite/00114.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00115.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00115.c -------------------------------------------------------------------------------- /tests/c-testsuite/00115.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00116.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00116.c -------------------------------------------------------------------------------- /tests/c-testsuite/00116.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00117.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00117.c -------------------------------------------------------------------------------- /tests/c-testsuite/00117.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00118.c: -------------------------------------------------------------------------------- 1 | int 2 | main() 3 | { 4 | struct { int x; } s = { 0 }; 5 | return s.x; 6 | } 7 | -------------------------------------------------------------------------------- /tests/c-testsuite/00118.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00119.c: -------------------------------------------------------------------------------- 1 | double x = 100; 2 | 3 | int 4 | main() 5 | { 6 | return x < 1; 7 | } 8 | -------------------------------------------------------------------------------- /tests/c-testsuite/00119.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00120.c: -------------------------------------------------------------------------------- 1 | struct { 2 | enum { X } x; 3 | } s; 4 | 5 | 6 | int 7 | main() 8 | { 9 | return X; 10 | } 11 | -------------------------------------------------------------------------------- /tests/c-testsuite/00120.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00121.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00121.c -------------------------------------------------------------------------------- /tests/c-testsuite/00121.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00122.c: -------------------------------------------------------------------------------- 1 | #define F(a, b) a 2 | int 3 | main() 4 | { 5 | return F(, 1) 0; 6 | } 7 | -------------------------------------------------------------------------------- /tests/c-testsuite/00122.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00123.c: -------------------------------------------------------------------------------- 1 | double x = 100.0; 2 | 3 | int 4 | main() 5 | { 6 | return x < 1; 7 | } 8 | -------------------------------------------------------------------------------- /tests/c-testsuite/00123.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00124.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00124.c -------------------------------------------------------------------------------- /tests/c-testsuite/00124.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00125.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int 4 | main(void) 5 | { 6 | printf("hello world\n"); 7 | return 0; 8 | } 9 | -------------------------------------------------------------------------------- /tests/c-testsuite/00125.c.expected: -------------------------------------------------------------------------------- 1 | hello world 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00126.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00126.c -------------------------------------------------------------------------------- /tests/c-testsuite/00126.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00127.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00127.c -------------------------------------------------------------------------------- /tests/c-testsuite/00127.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00128.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00128.c -------------------------------------------------------------------------------- /tests/c-testsuite/00128.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00129.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00129.c -------------------------------------------------------------------------------- /tests/c-testsuite/00129.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00130.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00130.c -------------------------------------------------------------------------------- /tests/c-testsuite/00130.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00131.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00131.c -------------------------------------------------------------------------------- /tests/c-testsuite/00131.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00131.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00132.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00132.c -------------------------------------------------------------------------------- /tests/c-testsuite/00132.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00132.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00133.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00133.c -------------------------------------------------------------------------------- /tests/c-testsuite/00133.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00134.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00134.c -------------------------------------------------------------------------------- /tests/c-testsuite/00134.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00135.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00135.c -------------------------------------------------------------------------------- /tests/c-testsuite/00135.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00136.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00136.c -------------------------------------------------------------------------------- /tests/c-testsuite/00136.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00137.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00137.c -------------------------------------------------------------------------------- /tests/c-testsuite/00137.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00138.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00138.c -------------------------------------------------------------------------------- /tests/c-testsuite/00138.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00139.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00139.c -------------------------------------------------------------------------------- /tests/c-testsuite/00139.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00140.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00140.c -------------------------------------------------------------------------------- /tests/c-testsuite/00140.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00141.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00141.c -------------------------------------------------------------------------------- /tests/c-testsuite/00141.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00142.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00142.c -------------------------------------------------------------------------------- /tests/c-testsuite/00142.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00143.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00143.c -------------------------------------------------------------------------------- /tests/c-testsuite/00143.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00144.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00144.c -------------------------------------------------------------------------------- /tests/c-testsuite/00144.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00145.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00145.c -------------------------------------------------------------------------------- /tests/c-testsuite/00145.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00146.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00146.c -------------------------------------------------------------------------------- /tests/c-testsuite/00146.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00147.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00147.c -------------------------------------------------------------------------------- /tests/c-testsuite/00147.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00148.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00148.c -------------------------------------------------------------------------------- /tests/c-testsuite/00148.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00149.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00149.c -------------------------------------------------------------------------------- /tests/c-testsuite/00149.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00150.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00150.c -------------------------------------------------------------------------------- /tests/c-testsuite/00150.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00151.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00151.c -------------------------------------------------------------------------------- /tests/c-testsuite/00151.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00152.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00152.c -------------------------------------------------------------------------------- /tests/c-testsuite/00152.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00153.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00153.c -------------------------------------------------------------------------------- /tests/c-testsuite/00153.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00154.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00154.c -------------------------------------------------------------------------------- /tests/c-testsuite/00154.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00154.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00155.c: -------------------------------------------------------------------------------- 1 | 2 | int 3 | main(void) 4 | { 5 | sizeof((int) 1); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /tests/c-testsuite/00155.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00156.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00156.c -------------------------------------------------------------------------------- /tests/c-testsuite/00156.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 11 | -------------------------------------------------------------------------------- /tests/c-testsuite/00157.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00157.c -------------------------------------------------------------------------------- /tests/c-testsuite/00157.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 4 3 | 9 4 | 16 5 | 25 6 | 36 7 | 49 8 | 64 9 | 81 10 | 100 11 | -------------------------------------------------------------------------------- /tests/c-testsuite/00158.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00158.c -------------------------------------------------------------------------------- /tests/c-testsuite/00158.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00158.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00159.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00159.c -------------------------------------------------------------------------------- /tests/c-testsuite/00159.c.expected: -------------------------------------------------------------------------------- 1 | 9 2 | 16 3 | a=1234 4 | qfunc() 5 | -------------------------------------------------------------------------------- /tests/c-testsuite/00160.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00160.c -------------------------------------------------------------------------------- /tests/c-testsuite/00160.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 2 4 | 3 5 | 5 6 | 8 7 | 13 8 | 21 9 | 34 10 | 55 11 | 89 12 | -------------------------------------------------------------------------------- /tests/c-testsuite/00161.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00161.c -------------------------------------------------------------------------------- /tests/c-testsuite/00161.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 1 3 | 2 4 | 3 5 | 5 6 | 8 7 | 13 8 | 21 9 | 34 10 | 55 11 | 89 12 | -------------------------------------------------------------------------------- /tests/c-testsuite/00162.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00162.c -------------------------------------------------------------------------------- /tests/c-testsuite/00162.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00163.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00163.c -------------------------------------------------------------------------------- /tests/c-testsuite/00163.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00163.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00164.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00164.c -------------------------------------------------------------------------------- /tests/c-testsuite/00164.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00164.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00165.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00165.c -------------------------------------------------------------------------------- /tests/c-testsuite/00165.c.expected: -------------------------------------------------------------------------------- 1 | 12 2 | 12, 24, 36 3 | -------------------------------------------------------------------------------- /tests/c-testsuite/00166.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00166.c -------------------------------------------------------------------------------- /tests/c-testsuite/00166.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00166.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00167.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00167.c -------------------------------------------------------------------------------- /tests/c-testsuite/00167.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00167.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00168.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00168.c -------------------------------------------------------------------------------- /tests/c-testsuite/00168.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00168.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00169.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00169.c -------------------------------------------------------------------------------- /tests/c-testsuite/00169.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00169.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00170.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00170.c -------------------------------------------------------------------------------- /tests/c-testsuite/00170.c.expected: -------------------------------------------------------------------------------- 1 | 0 1 2 3 54 73 74 75 2 | 12 3 | 54 4 | enum to int: 1 5 | -------------------------------------------------------------------------------- /tests/c-testsuite/00171.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00171.c -------------------------------------------------------------------------------- /tests/c-testsuite/00171.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00171.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00172.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00172.c -------------------------------------------------------------------------------- /tests/c-testsuite/00172.c.expected: -------------------------------------------------------------------------------- 1 | 12 2 | 34 3 | 0 4 | 1 5 | 1 6 | 0 7 | -------------------------------------------------------------------------------- /tests/c-testsuite/00173.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00173.c -------------------------------------------------------------------------------- /tests/c-testsuite/00173.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00173.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00174.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00174.c -------------------------------------------------------------------------------- /tests/c-testsuite/00174.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00174.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00175.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00175.c -------------------------------------------------------------------------------- /tests/c-testsuite/00175.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00175.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00176.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00176.c -------------------------------------------------------------------------------- /tests/c-testsuite/00176.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00176.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00177.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00177.c -------------------------------------------------------------------------------- /tests/c-testsuite/00177.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00177.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00178.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00178.c -------------------------------------------------------------------------------- /tests/c-testsuite/00178.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 4 3 | 8 4 | 4 5 | -------------------------------------------------------------------------------- /tests/c-testsuite/00179.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00179.c -------------------------------------------------------------------------------- /tests/c-testsuite/00179.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00179.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00180.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00180.c -------------------------------------------------------------------------------- /tests/c-testsuite/00180.c.expected: -------------------------------------------------------------------------------- 1 | bcdef 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00181.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00181.c -------------------------------------------------------------------------------- /tests/c-testsuite/00181.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00181.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00182.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00182.c -------------------------------------------------------------------------------- /tests/c-testsuite/00182.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00182.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00183.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00183.c -------------------------------------------------------------------------------- /tests/c-testsuite/00183.c.expected: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 4 4 | 9 5 | 16 6 | 15 7 | 18 8 | 21 9 | 24 10 | 27 11 | -------------------------------------------------------------------------------- /tests/c-testsuite/00184.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00184.c -------------------------------------------------------------------------------- /tests/c-testsuite/00184.c.expected: -------------------------------------------------------------------------------- 1 | 1 1 2 | 2 2 3 | -------------------------------------------------------------------------------- /tests/c-testsuite/00185.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00185.c -------------------------------------------------------------------------------- /tests/c-testsuite/00185.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00185.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00186.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00186.c -------------------------------------------------------------------------------- /tests/c-testsuite/00186.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00186.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00187.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00187.c -------------------------------------------------------------------------------- /tests/c-testsuite/00187.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00187.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00188.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00188.c -------------------------------------------------------------------------------- /tests/c-testsuite/00188.c.expected: -------------------------------------------------------------------------------- 1 | #include test 2 | b 3 | g 4 | i 5 | p 6 | r 7 | -------------------------------------------------------------------------------- /tests/c-testsuite/00189.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00189.c -------------------------------------------------------------------------------- /tests/c-testsuite/00189.c.expected: -------------------------------------------------------------------------------- 1 | yo 24 2 | 42 3 | -------------------------------------------------------------------------------- /tests/c-testsuite/00190.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00190.c -------------------------------------------------------------------------------- /tests/c-testsuite/00190.c.expected: -------------------------------------------------------------------------------- 1 | yo 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00191.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00191.c -------------------------------------------------------------------------------- /tests/c-testsuite/00191.c.expected: -------------------------------------------------------------------------------- 1 | it's all good 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00192.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00192.c -------------------------------------------------------------------------------- /tests/c-testsuite/00192.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 3 4 | 4 5 | 5 6 | 6 7 | 7 8 | 8 9 | 9 10 | 10 11 | -------------------------------------------------------------------------------- /tests/c-testsuite/00193.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00193.c -------------------------------------------------------------------------------- /tests/c-testsuite/00193.c.expected: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | out 4 | 3 5 | -------------------------------------------------------------------------------- /tests/c-testsuite/00194.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00194.c -------------------------------------------------------------------------------- /tests/c-testsuite/00194.c.expected: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00195.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00195.c -------------------------------------------------------------------------------- /tests/c-testsuite/00195.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00195.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00196.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00196.c -------------------------------------------------------------------------------- /tests/c-testsuite/00196.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00196.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00197.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00197.c -------------------------------------------------------------------------------- /tests/c-testsuite/00197.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00197.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00198.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00198.c -------------------------------------------------------------------------------- /tests/c-testsuite/00198.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00198.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00199.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00199.c -------------------------------------------------------------------------------- /tests/c-testsuite/00199.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00199.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00200.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00200.c -------------------------------------------------------------------------------- /tests/c-testsuite/00200.c.expected: -------------------------------------------------------------------------------- 1 | 0 test(s) failed 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00201.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00201.c -------------------------------------------------------------------------------- /tests/c-testsuite/00201.c.expected: -------------------------------------------------------------------------------- 1 | 42 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00202.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00202.c -------------------------------------------------------------------------------- /tests/c-testsuite/00202.c.expected: -------------------------------------------------------------------------------- 1 | jim: 21, bob: 42 2 | jim: 63 3 | -------------------------------------------------------------------------------- /tests/c-testsuite/00203.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00203.c -------------------------------------------------------------------------------- /tests/c-testsuite/00203.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00203.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00204.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00204.c -------------------------------------------------------------------------------- /tests/c-testsuite/00204.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00204.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00205.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00205.c -------------------------------------------------------------------------------- /tests/c-testsuite/00205.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00205.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00206.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00206.c -------------------------------------------------------------------------------- /tests/c-testsuite/00206.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00206.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00207.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00207.c -------------------------------------------------------------------------------- /tests/c-testsuite/00207.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00207.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00208.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00208.c -------------------------------------------------------------------------------- /tests/c-testsuite/00208.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00209.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00209.c -------------------------------------------------------------------------------- /tests/c-testsuite/00209.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00210.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00210.c -------------------------------------------------------------------------------- /tests/c-testsuite/00210.c.expected: -------------------------------------------------------------------------------- 1 | 42 2 | 42 3 | -------------------------------------------------------------------------------- /tests/c-testsuite/00211.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00211.c -------------------------------------------------------------------------------- /tests/c-testsuite/00211.c.expected: -------------------------------------------------------------------------------- 1 | n+1 = 15 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00212.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00212.c -------------------------------------------------------------------------------- /tests/c-testsuite/00212.c.expected: -------------------------------------------------------------------------------- 1 | Ok 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00213.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00213.c -------------------------------------------------------------------------------- /tests/c-testsuite/00213.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00213.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00214.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00214.c -------------------------------------------------------------------------------- /tests/c-testsuite/00214.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00214.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00215.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00215.c -------------------------------------------------------------------------------- /tests/c-testsuite/00215.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00215.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00216.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00216.c -------------------------------------------------------------------------------- /tests/c-testsuite/00216.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00216.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00217.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00217.c -------------------------------------------------------------------------------- /tests/c-testsuite/00217.c.expected: -------------------------------------------------------------------------------- 1 | data = "0123-5678" 2 | -------------------------------------------------------------------------------- /tests/c-testsuite/00218.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00218.c -------------------------------------------------------------------------------- /tests/c-testsuite/00218.c.expected: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/c-testsuite/00219.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00219.c -------------------------------------------------------------------------------- /tests/c-testsuite/00219.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00219.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/00220.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00220.c -------------------------------------------------------------------------------- /tests/c-testsuite/00220.c.expected: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/00220.c.expected -------------------------------------------------------------------------------- /tests/c-testsuite/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c-testsuite/LICENSE -------------------------------------------------------------------------------- /tests/c_exit_call.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/c_exit_call.c -------------------------------------------------------------------------------- /tests/call_multi_func.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/call_multi_func.c -------------------------------------------------------------------------------- /tests/cast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/cast.c -------------------------------------------------------------------------------- /tests/char_literals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/char_literals.c -------------------------------------------------------------------------------- /tests/cmp_zero.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/cmp_zero.c -------------------------------------------------------------------------------- /tests/compare.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compare.c -------------------------------------------------------------------------------- /tests/complex_decls.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/complex_decls.c -------------------------------------------------------------------------------- /tests/compound_assg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compound_assg.c -------------------------------------------------------------------------------- /tests/compound_expr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compound_expr.c -------------------------------------------------------------------------------- /tests/compound_expr_stmt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compound_expr_stmt.c -------------------------------------------------------------------------------- /tests/compound_literal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compound_literal.c -------------------------------------------------------------------------------- /tests/compound_literal_and_init_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compound_literal_and_init_list.c -------------------------------------------------------------------------------- /tests/compound_literal_scalar.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/compound_literal_scalar.c -------------------------------------------------------------------------------- /tests/cross_func_vars.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/cross_func_vars.c -------------------------------------------------------------------------------- /tests/decl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/decl.c -------------------------------------------------------------------------------- /tests/decl_shadow.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/decl_shadow.c -------------------------------------------------------------------------------- /tests/defer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/defer.c -------------------------------------------------------------------------------- /tests/define.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/define.c -------------------------------------------------------------------------------- /tests/deref.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/deref.c -------------------------------------------------------------------------------- /tests/designated.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/designated.c -------------------------------------------------------------------------------- /tests/do_while.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/do_while.c -------------------------------------------------------------------------------- /tests/duffy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/duffy.c -------------------------------------------------------------------------------- /tests/eep/mov_add_sub.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eep/mov_add_sub.c -------------------------------------------------------------------------------- /tests/eep/mul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eep/mul.c -------------------------------------------------------------------------------- /tests/eep/mul_asm.ram: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eep/mul_asm.ram -------------------------------------------------------------------------------- /tests/eep/mul_asm.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eep/mul_asm.txt -------------------------------------------------------------------------------- /tests/eep/mul_instr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eep/mul_instr.c -------------------------------------------------------------------------------- /tests/empty.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/empty.bin -------------------------------------------------------------------------------- /tests/empty.c: -------------------------------------------------------------------------------- 1 | // expected value: 88 2 | 3 | int main() { 4 | return 88; 5 | } 6 | -------------------------------------------------------------------------------- /tests/enum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/enum.c -------------------------------------------------------------------------------- /tests/eq.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eq.c -------------------------------------------------------------------------------- /tests/eq_var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/eq_var.c -------------------------------------------------------------------------------- /tests/escape_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/escape_string.c -------------------------------------------------------------------------------- /tests/explicit_enum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/explicit_enum.c -------------------------------------------------------------------------------- /tests/extern_incomplete.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/extern_incomplete.c -------------------------------------------------------------------------------- /tests/fallthrough.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/fallthrough.c -------------------------------------------------------------------------------- /tests/fancy_pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/fancy_pointer.c -------------------------------------------------------------------------------- /tests/fib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/fib.c -------------------------------------------------------------------------------- /tests/find_todo_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/find_todo_tests.sh -------------------------------------------------------------------------------- /tests/float.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/float.c -------------------------------------------------------------------------------- /tests/float_arith.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/float_arith.c -------------------------------------------------------------------------------- /tests/float_compare.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/float_compare.c -------------------------------------------------------------------------------- /tests/float_if.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/float_if.c -------------------------------------------------------------------------------- /tests/flow.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/flow.c -------------------------------------------------------------------------------- /tests/for.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/for.c -------------------------------------------------------------------------------- /tests/func.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/func.c -------------------------------------------------------------------------------- /tests/func_glb.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/func_glb.c -------------------------------------------------------------------------------- /tests/func_pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/func_pointer.c -------------------------------------------------------------------------------- /tests/func_var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/func_var.c -------------------------------------------------------------------------------- /tests/generic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/generic.c -------------------------------------------------------------------------------- /tests/globals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/globals.c -------------------------------------------------------------------------------- /tests/half.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/half.c -------------------------------------------------------------------------------- /tests/hello_world.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/hello_world.c -------------------------------------------------------------------------------- /tests/if.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/if.c -------------------------------------------------------------------------------- /tests/if_assign.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/if_assign.c -------------------------------------------------------------------------------- /tests/if_else.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/if_else.c -------------------------------------------------------------------------------- /tests/if_else_assign.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/if_else_assign.c -------------------------------------------------------------------------------- /tests/if_else_vars.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/if_else_vars.c -------------------------------------------------------------------------------- /tests/implicit_addr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/implicit_addr.c -------------------------------------------------------------------------------- /tests/inc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/inc.c -------------------------------------------------------------------------------- /tests/inc_pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/inc_pointer.c -------------------------------------------------------------------------------- /tests/include.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/include.c -------------------------------------------------------------------------------- /tests/include.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/include.h -------------------------------------------------------------------------------- /tests/incomplete.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/incomplete.c -------------------------------------------------------------------------------- /tests/init_list_arr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/init_list_arr.c -------------------------------------------------------------------------------- /tests/init_list_sub.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/init_list_sub.c -------------------------------------------------------------------------------- /tests/init_lists.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/init_lists.c -------------------------------------------------------------------------------- /tests/int_literal_types.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/int_literal_types.c -------------------------------------------------------------------------------- /tests/integer_const_expr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/integer_const_expr.c -------------------------------------------------------------------------------- /tests/langproc/_example/example.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/_example/example.c -------------------------------------------------------------------------------- /tests/langproc/_example/example_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/_example/example_driver.c -------------------------------------------------------------------------------- /tests/langproc/array/declare_global.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/declare_global.c -------------------------------------------------------------------------------- /tests/langproc/array/declare_global_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/declare_global_driver.c -------------------------------------------------------------------------------- /tests/langproc/array/declare_local.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/declare_local.c -------------------------------------------------------------------------------- /tests/langproc/array/declare_local_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/declare_local_driver.c -------------------------------------------------------------------------------- /tests/langproc/array/index_constant.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/index_constant.c -------------------------------------------------------------------------------- /tests/langproc/array/index_constant_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/index_constant_driver.c -------------------------------------------------------------------------------- /tests/langproc/array/index_expression.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/index_expression.c -------------------------------------------------------------------------------- /tests/langproc/array/index_expression_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/index_expression_driver.c -------------------------------------------------------------------------------- /tests/langproc/array/index_variable.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/index_variable.c -------------------------------------------------------------------------------- /tests/langproc/array/index_variable_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/array/index_variable_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_multiple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_multiple.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_multiple_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_multiple_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_one.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_one.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_one_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_one_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_zero_v1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_zero_v1.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_zero_v1_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_zero_v1_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_zero_v2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_zero_v2.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/for_zero_v2_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/for_zero_v2_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_else_false.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_else_false.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_else_false_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_else_false_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_else_true.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_else_true.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_else_true_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_else_true_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_false.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_false.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_false_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_false_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_true.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_true.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/if_true_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/if_true_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/sequence.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/sequence.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/sequence_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/sequence_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/while_multiple.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/while_multiple.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/while_once.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/while_once.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/while_once_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/while_once_driver.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/while_zero.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/while_zero.c -------------------------------------------------------------------------------- /tests/langproc/control_flow/while_zero_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/control_flow/while_zero_driver.c -------------------------------------------------------------------------------- /tests/langproc/default/test_ADD0.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_ADD0.c -------------------------------------------------------------------------------- /tests/langproc/default/test_ADD0_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_ADD0_driver.c -------------------------------------------------------------------------------- /tests/langproc/default/test_ADD1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_ADD1.c -------------------------------------------------------------------------------- /tests/langproc/default/test_ADD1_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_ADD1_driver.c -------------------------------------------------------------------------------- /tests/langproc/default/test_CALL.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_CALL.c -------------------------------------------------------------------------------- /tests/langproc/default/test_CALL_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_CALL_driver.c -------------------------------------------------------------------------------- /tests/langproc/default/test_LOCAL.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_LOCAL.c -------------------------------------------------------------------------------- /tests/langproc/default/test_LOCAL_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/default/test_LOCAL_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/add.c -------------------------------------------------------------------------------- /tests/langproc/float/add_double.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/add_double.c -------------------------------------------------------------------------------- /tests/langproc/float/add_double_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/add_double_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/add_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/add_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/add_mul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/add_mul.c -------------------------------------------------------------------------------- /tests/langproc/float/add_mul_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/add_mul_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/mul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/mul.c -------------------------------------------------------------------------------- /tests/langproc/float/mul_add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/mul_add.c -------------------------------------------------------------------------------- /tests/langproc/float/mul_add_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/mul_add_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/mul_double.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/mul_double.c -------------------------------------------------------------------------------- /tests/langproc/float/mul_double_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/mul_double_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/mul_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/mul_driver.c -------------------------------------------------------------------------------- /tests/langproc/float/pow.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/pow.c -------------------------------------------------------------------------------- /tests/langproc/float/pow_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/float/pow_driver.c -------------------------------------------------------------------------------- /tests/langproc/functions/call_constant_external.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/functions/call_constant_external.c -------------------------------------------------------------------------------- /tests/langproc/integer/add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/add.c -------------------------------------------------------------------------------- /tests/langproc/integer/add_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/add_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/bitwise_and.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/bitwise_and.c -------------------------------------------------------------------------------- /tests/langproc/integer/bitwise_and_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/bitwise_and_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/bitwise_or.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/bitwise_or.c -------------------------------------------------------------------------------- /tests/langproc/integer/bitwise_or_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/bitwise_or_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/bitwise_xor.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/bitwise_xor.c -------------------------------------------------------------------------------- /tests/langproc/integer/bitwise_xor_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/bitwise_xor_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/div.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/div.c -------------------------------------------------------------------------------- /tests/langproc/integer/div_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/div_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/equal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/equal.c -------------------------------------------------------------------------------- /tests/langproc/integer/equal_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/equal_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/less_than.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/less_than.c -------------------------------------------------------------------------------- /tests/langproc/integer/less_than_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/less_than_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/less_than_equal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/less_than_equal.c -------------------------------------------------------------------------------- /tests/langproc/integer/less_than_equal_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/less_than_equal_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/logical_and.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/logical_and.c -------------------------------------------------------------------------------- /tests/langproc/integer/logical_and_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/logical_and_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/logical_or.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/logical_or.c -------------------------------------------------------------------------------- /tests/langproc/integer/logical_or_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/logical_or_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/mul.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/mul.c -------------------------------------------------------------------------------- /tests/langproc/integer/mul_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/mul_driver.c -------------------------------------------------------------------------------- /tests/langproc/integer/sub.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/sub.c -------------------------------------------------------------------------------- /tests/langproc/integer/sub_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/integer/sub_driver.c -------------------------------------------------------------------------------- /tests/langproc/local_var/constant_initialiser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/constant_initialiser.c -------------------------------------------------------------------------------- /tests/langproc/local_var/dual_var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/dual_var.c -------------------------------------------------------------------------------- /tests/langproc/local_var/dual_var_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/dual_var_driver.c -------------------------------------------------------------------------------- /tests/langproc/local_var/identity.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/identity.c -------------------------------------------------------------------------------- /tests/langproc/local_var/identity_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/identity_driver.c -------------------------------------------------------------------------------- /tests/langproc/local_var/scoped_var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/scoped_var.c -------------------------------------------------------------------------------- /tests/langproc/local_var/scoped_var_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/scoped_var_driver.c -------------------------------------------------------------------------------- /tests/langproc/local_var/single_var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/single_var.c -------------------------------------------------------------------------------- /tests/langproc/local_var/single_var_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/local_var/single_var_driver.c -------------------------------------------------------------------------------- /tests/langproc/misc/enum1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/enum1.c -------------------------------------------------------------------------------- /tests/langproc/misc/enum1_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/enum1_driver.c -------------------------------------------------------------------------------- /tests/langproc/misc/enum2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/enum2.c -------------------------------------------------------------------------------- /tests/langproc/misc/enum2_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/enum2_driver.c -------------------------------------------------------------------------------- /tests/langproc/misc/switch1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/switch1.c -------------------------------------------------------------------------------- /tests/langproc/misc/switch1_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/switch1_driver.c -------------------------------------------------------------------------------- /tests/langproc/misc/switch2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/switch2.c -------------------------------------------------------------------------------- /tests/langproc/misc/switch2_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/switch2_driver.c -------------------------------------------------------------------------------- /tests/langproc/misc/typedef1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/typedef1.c -------------------------------------------------------------------------------- /tests/langproc/misc/typedef1_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/typedef1_driver.c -------------------------------------------------------------------------------- /tests/langproc/misc/typedef2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/typedef2.c -------------------------------------------------------------------------------- /tests/langproc/misc/typedef2_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/misc/typedef2_driver.c -------------------------------------------------------------------------------- /tests/langproc/pointer/addressof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/addressof.c -------------------------------------------------------------------------------- /tests/langproc/pointer/addressof_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/addressof_driver.c -------------------------------------------------------------------------------- /tests/langproc/pointer/arithmetic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/arithmetic.c -------------------------------------------------------------------------------- /tests/langproc/pointer/arithmetic_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/arithmetic_driver.c -------------------------------------------------------------------------------- /tests/langproc/pointer/assign.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/assign.c -------------------------------------------------------------------------------- /tests/langproc/pointer/assign_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/assign_driver.c -------------------------------------------------------------------------------- /tests/langproc/pointer/dereference.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/dereference.c -------------------------------------------------------------------------------- /tests/langproc/pointer/dereference_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/dereference_driver.c -------------------------------------------------------------------------------- /tests/langproc/pointer/index.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/index.c -------------------------------------------------------------------------------- /tests/langproc/pointer/index_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/pointer/index_driver.c -------------------------------------------------------------------------------- /tests/langproc/programs/fibonacci.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/programs/fibonacci.c -------------------------------------------------------------------------------- /tests/langproc/programs/fibonacci_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/programs/fibonacci_driver.c -------------------------------------------------------------------------------- /tests/langproc/programs/multiply.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/programs/multiply.c -------------------------------------------------------------------------------- /tests/langproc/programs/multiply_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/programs/multiply_driver.c -------------------------------------------------------------------------------- /tests/langproc/programs/sqrt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/programs/sqrt.c -------------------------------------------------------------------------------- /tests/langproc/programs/sqrt_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/programs/sqrt_driver.c -------------------------------------------------------------------------------- /tests/langproc/strings/chliteral.c: -------------------------------------------------------------------------------- 1 | int g() 2 | { 3 | return 'h'; 4 | } 5 | -------------------------------------------------------------------------------- /tests/langproc/strings/chliteral_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/chliteral_driver.c -------------------------------------------------------------------------------- /tests/langproc/strings/escaped.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/escaped.c -------------------------------------------------------------------------------- /tests/langproc/strings/escaped_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/escaped_driver.c -------------------------------------------------------------------------------- /tests/langproc/strings/literal.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/literal.c -------------------------------------------------------------------------------- /tests/langproc/strings/literal_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/literal_driver.c -------------------------------------------------------------------------------- /tests/langproc/strings/puts.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/puts.c -------------------------------------------------------------------------------- /tests/langproc/strings/puts_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/puts_driver.c -------------------------------------------------------------------------------- /tests/langproc/strings/search.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/search.c -------------------------------------------------------------------------------- /tests/langproc/strings/search_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/strings/search_driver.c -------------------------------------------------------------------------------- /tests/langproc/struct/sizeof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/sizeof.c -------------------------------------------------------------------------------- /tests/langproc/struct/sizeof_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/sizeof_driver.c -------------------------------------------------------------------------------- /tests/langproc/struct/struct_inst.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/struct_inst.c -------------------------------------------------------------------------------- /tests/langproc/struct/struct_inst_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/struct_inst_driver.c -------------------------------------------------------------------------------- /tests/langproc/struct/struct_member_get.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/struct_member_get.c -------------------------------------------------------------------------------- /tests/langproc/struct/struct_member_set.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/struct_member_set.c -------------------------------------------------------------------------------- /tests/langproc/struct/struct_two_members.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/struct/struct_two_members.c -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_char_inst.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/sizeof_char_inst.c -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_char_inst_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/sizeof_char_inst_driver.c -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_char_type.c: -------------------------------------------------------------------------------- 1 | int f() 2 | { 3 | return sizeof(char); 4 | } 5 | -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_char_type_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/sizeof_char_type_driver.c -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_int_inst.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/sizeof_int_inst.c -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_int_inst_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/sizeof_int_inst_driver.c -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_int_type.c: -------------------------------------------------------------------------------- 1 | int f() 2 | { 3 | return sizeof(int); 4 | } 5 | -------------------------------------------------------------------------------- /tests/langproc/types/sizeof_int_type_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/sizeof_int_type_driver.c -------------------------------------------------------------------------------- /tests/langproc/types/unsigned.c: -------------------------------------------------------------------------------- 1 | unsigned f() 2 | { 3 | return 11; 4 | } 5 | -------------------------------------------------------------------------------- /tests/langproc/types/unsigned_driver.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/langproc/types/unsigned_driver.c -------------------------------------------------------------------------------- /tests/literals.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/literals.c -------------------------------------------------------------------------------- /tests/local_static.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/local_static.c -------------------------------------------------------------------------------- /tests/logical.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/logical.c -------------------------------------------------------------------------------- /tests/logical_and.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/logical_and.c -------------------------------------------------------------------------------- /tests/macro_fn.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/macro_fn.c -------------------------------------------------------------------------------- /tests/many_args.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/many_args.c -------------------------------------------------------------------------------- /tests/math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/math.c -------------------------------------------------------------------------------- /tests/md_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/md_array.c -------------------------------------------------------------------------------- /tests/memset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/memset.c -------------------------------------------------------------------------------- /tests/mixed_fp_ret.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/mixed_fp_ret.c -------------------------------------------------------------------------------- /tests/mul.c: -------------------------------------------------------------------------------- 1 | // expected value: 45 2 | int main() { return 5 * 9; } 3 | -------------------------------------------------------------------------------- /tests/multi_function.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/multi_function.c -------------------------------------------------------------------------------- /tests/multi_if_else.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/multi_if_else.c -------------------------------------------------------------------------------- /tests/multi_line_comment.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/multi_line_comment.c -------------------------------------------------------------------------------- /tests/negative.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/negative.c -------------------------------------------------------------------------------- /tests/nested_struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/nested_struct.c -------------------------------------------------------------------------------- /tests/no_ret.c: -------------------------------------------------------------------------------- 1 | // expected value: 0 2 | 3 | int main() {} 4 | -------------------------------------------------------------------------------- /tests/null_char.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/null_char.c -------------------------------------------------------------------------------- /tests/offsetof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/offsetof.c -------------------------------------------------------------------------------- /tests/pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/pointer.c -------------------------------------------------------------------------------- /tests/pointer_access.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/pointer_access.c -------------------------------------------------------------------------------- /tests/pointer_add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/pointer_add.c -------------------------------------------------------------------------------- /tests/pointer_sub.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/pointer_sub.c -------------------------------------------------------------------------------- /tests/popcnt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/popcnt.c -------------------------------------------------------------------------------- /tests/postfix.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/postfix.c -------------------------------------------------------------------------------- /tests/preproc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/preproc.c -------------------------------------------------------------------------------- /tests/preproc_nested_if.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/preproc_nested_if.c -------------------------------------------------------------------------------- /tests/preproc_nl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/preproc_nl.c -------------------------------------------------------------------------------- /tests/preproc_prescan.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/preproc_prescan.c -------------------------------------------------------------------------------- /tests/preproc_punctuator.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/preproc_punctuator.c -------------------------------------------------------------------------------- /tests/preproc_ternary.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/preproc_ternary.c -------------------------------------------------------------------------------- /tests/printf_format.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/printf_format.c -------------------------------------------------------------------------------- /tests/printf_string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/printf_string.c -------------------------------------------------------------------------------- /tests/programs/bf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/programs/bf.c -------------------------------------------------------------------------------- /tests/programs/donut.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/programs/donut.c -------------------------------------------------------------------------------- /tests/programs/mandelbrot.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/programs/mandelbrot.c -------------------------------------------------------------------------------- /tests/programs/mandelbrot_no_str.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/programs/mandelbrot_no_str.c -------------------------------------------------------------------------------- /tests/programs/maze.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/programs/maze.c -------------------------------------------------------------------------------- /tests/promote_phi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/promote_phi.c -------------------------------------------------------------------------------- /tests/ptr_global.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/ptr_global.c -------------------------------------------------------------------------------- /tests/pythag.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/pythag.c -------------------------------------------------------------------------------- /tests/recursive_struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/recursive_struct.c -------------------------------------------------------------------------------- /tests/reg_pressure.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/reg_pressure.c -------------------------------------------------------------------------------- /tests/reg_pressure_extreme.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/reg_pressure_extreme.c -------------------------------------------------------------------------------- /tests/sdiv.c: -------------------------------------------------------------------------------- 1 | // expected value: 8 2 | int main() { return 88 / 10; } 3 | -------------------------------------------------------------------------------- /tests/sext.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/sext.c -------------------------------------------------------------------------------- /tests/single_line_comment.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/single_line_comment.c -------------------------------------------------------------------------------- /tests/sizeof_ambigous.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/sizeof_ambigous.c -------------------------------------------------------------------------------- /tests/sizeof_expr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/sizeof_expr.c -------------------------------------------------------------------------------- /tests/sizeof_ty.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/sizeof_ty.c -------------------------------------------------------------------------------- /tests/special.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/special.c -------------------------------------------------------------------------------- /tests/spill.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/spill.c -------------------------------------------------------------------------------- /tests/sqrt.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/sqrt.c -------------------------------------------------------------------------------- /tests/squot.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/squot.c -------------------------------------------------------------------------------- /tests/static_assert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/static_assert.c -------------------------------------------------------------------------------- /tests/static_assert_fail.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/static_assert_fail.c -------------------------------------------------------------------------------- /tests/static_func.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/static_func.c -------------------------------------------------------------------------------- /tests/str_array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/str_array.c -------------------------------------------------------------------------------- /tests/str_concat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/str_concat.c -------------------------------------------------------------------------------- /tests/str_global.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/str_global.c -------------------------------------------------------------------------------- /tests/str_index.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/str_index.c -------------------------------------------------------------------------------- /tests/struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/struct.c -------------------------------------------------------------------------------- /tests/struct_arg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/struct_arg.c -------------------------------------------------------------------------------- /tests/struct_inline_init.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/struct_inline_init.c -------------------------------------------------------------------------------- /tests/struct_move.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/struct_move.c -------------------------------------------------------------------------------- /tests/struct_ret.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/struct_ret.c -------------------------------------------------------------------------------- /tests/sub.c: -------------------------------------------------------------------------------- 1 | // expected value: 2 2 | int main() { return 9 - 7; } 3 | -------------------------------------------------------------------------------- /tests/switch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/switch.c -------------------------------------------------------------------------------- /tests/ternary.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/ternary.c -------------------------------------------------------------------------------- /tests/typedef.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/typedef.c -------------------------------------------------------------------------------- /tests/typedef2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/typedef2.c -------------------------------------------------------------------------------- /tests/typedef_complex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/typedef_complex.c -------------------------------------------------------------------------------- /tests/typedef_duplicate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/typedef_duplicate.c -------------------------------------------------------------------------------- /tests/typeof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/typeof.c -------------------------------------------------------------------------------- /tests/udiv.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/udiv.c -------------------------------------------------------------------------------- /tests/uninit_pointer.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/uninit_pointer.c -------------------------------------------------------------------------------- /tests/union.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/union.c -------------------------------------------------------------------------------- /tests/union_struct_nested.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/union_struct_nested.c -------------------------------------------------------------------------------- /tests/uquot.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/uquot.c -------------------------------------------------------------------------------- /tests/utf8.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/utf8.c -------------------------------------------------------------------------------- /tests/va_arg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/va_arg.c -------------------------------------------------------------------------------- /tests/va_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/va_list.c -------------------------------------------------------------------------------- /tests/variadic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/variadic.c -------------------------------------------------------------------------------- /tests/vec2_add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/vec2_add.c -------------------------------------------------------------------------------- /tests/vec2i_add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/vec2i_add.c -------------------------------------------------------------------------------- /tests/vec3/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/vec3/main.c -------------------------------------------------------------------------------- /tests/vec3_add.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/vec3_add.c -------------------------------------------------------------------------------- /tests/void_cast.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/void_cast.c -------------------------------------------------------------------------------- /tests/while.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/while.c -------------------------------------------------------------------------------- /tests/while_complex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/while_complex.c -------------------------------------------------------------------------------- /tests/wide_char.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/wide_char.c -------------------------------------------------------------------------------- /tests/x_macro_fn.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/john-h-k/jcc/HEAD/tests/x_macro_fn.c --------------------------------------------------------------------------------