adds the cases of #5043 and #5097 to the CI

This commit is contained in:
Laytan Laats
2025-04-30 20:13:21 +02:00
parent e64bcc7709
commit d2f8cb1306
4 changed files with 42 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
// Tests issue #5097 https://github.com/odin-lang/Odin/issues/5097
package test_issues
Node_Ptr :: ^Node // the typedef...
Node :: struct {
prev, next: Node_Ptr, // replacing the type with ^Node also fixes it
}
// ...if placed here, it works just fine
main :: proc() {
node: Node_Ptr
_ = node
}