aboutsummaryrefslogtreecommitdiffhomepage
path: root/testdata/go1.21.go
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/go1.21.go')
-rw-r--r--testdata/go1.21.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/testdata/go1.21.go b/testdata/go1.21.go
new file mode 100644
index 000000000..885e588da
--- /dev/null
+++ b/testdata/go1.21.go
@@ -0,0 +1,12 @@
+package main
+
+func main() {
+ ia := 1
+ ib := 5
+ ic := -3
+ fa := 1.0
+ fb := 5.0
+ fc := -3.0
+ println("min/max:", min(ia, ib, ic), max(ia, ib, ic))
+ println("min/max:", min(fa, fb, fc), max(fa, fb, fc))
+}