Skip to content

sema: Fix enums being their underlying type, add @enum_to_int and @in… #183

sema: Fix enums being their underlying type, add @enum_to_int and @in…

sema: Fix enums being their underlying type, add @enum_to_int and @in… #183

Workflow file for this run

name: Test example code
on: [push, pull_request]
jobs:
check-output:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup latest zig
run: |
wget https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3970+7a8002a5c.tar.xz
tar xf zig-linux-x86_64-0.11.0-dev.3970+7a8002a5c.tar.xz
mv zig-linux-x86_64-0.11.0-dev.3970+7a8002a5c zig
- name: Build self-hosted compiler
run: zig/zig build run -- selfhost/main.n
- name: Disassemble the built binary
run: objdump -d -M intel a.out
- name: Run the built binary
run: strace ./a.out
- name: Run the test cases
run: ./tests.sh