Github CI: Add test case for issue 2113

This commit is contained in:
Lucas Perlind
2022-10-08 17:07:29 +11:00
parent 62440df051
commit 64f1e8b7a2
4 changed files with 41 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
// Tests issue #2113 https://github.com/odin-lang/Odin/issues/2113
// Causes a panic on compilation
package test_issues
T :: struct {
a: int,
}
main :: proc() {
array: #soa[1]T
a := &array[0]
_ = a
}