mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 22:32:13 -04:00
Add test for issue #7689
This commit is contained in:
1 parent
cda48c4622
commit
e5b8ea0d2a
1 file changed
+21
@@ -0,0 +1,21 @@
|
||||
package bug_repro
|
||||
|
||||
import "core:fmt"
|
||||
import "core:os"
|
||||
|
||||
main :: proc() {
|
||||
x := len(os.args)+1 // runtime value so nothing is folded
|
||||
|
||||
r: int
|
||||
if x == 1 {
|
||||
r = 1
|
||||
} else if x == 2 {
|
||||
r = 2
|
||||
} else if x == 3 {
|
||||
r = 3
|
||||
} else if x == 4 {
|
||||
r = 4
|
||||
}
|
||||
|
||||
fmt.println(r)
|
||||
}
|
||||
Reference in new issue
Block a user