Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Found a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uucidl committed May 21, 2018
1 parent 0a507f5 commit f7e447b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions repro/repro_bug.ion
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
struct Bar
{
rc : int;
}

struct Foo
{
bar : Bar* const;
}

func main () : int {
bar := Bar{rc=42};
foo := Foo{bar = &bar };
return foo.bar.rc;
}

0 comments on commit f7e447b

Please sign in to comment.