summaryrefslogtreecommitdiff
path: root/test.lang
diff options
context:
space:
mode:
authorWormHeamer2025-08-07 23:26:45 -0400
committerWormHeamer2025-08-07 23:26:45 -0400
commitff9dc0a669474afab22765f0daa91fe89afb40e5 (patch)
tree404cfccc8b39f506a65b00a55378d7abd41d239f /test.lang
parent027b6d8f62281f5b513a2b7bfcc02ea833c2cfd2 (diff)
hopefully make multiple returns form sensible graphs
Diffstat (limited to 'test.lang')
-rw-r--r--test.lang8
1 files changed, 3 insertions, 5 deletions
diff --git a/test.lang b/test.lang
index 2d3c42d..f717086 100644
--- a/test.lang
+++ b/test.lang
@@ -1,8 +1,6 @@
func main(a, b i64) i64 {
- if true {
- a := 3
- } else {
- a := 5
+ if a < b {
+ return a + b
}
- return a
+ return b
}