summary refs log tree commit diff stats
path: root/tests/tuples
diff options
context:
space:
mode:
authorJoseph Turner <turner.d.joseph@gmail.com>2015-04-09 05:00:11 +0100
committerJoseph Turner <turner.d.joseph@gmail.com>2015-04-09 05:00:11 +0100
commite336da9dd98ed4befa2b46771b3f40888676e4db (patch)
treec92b8b841e9a58beb6621a8297b9dc4be77494c3 /tests/tuples
parent0fa82763feff2b7af67af19a86fb1e1dafe5f3bc (diff)
downloadNim-e336da9dd98ed4befa2b46771b3f40888676e4db.tar.gz
Adds test file, for bug #1986
Diffstat (limited to 'tests/tuples')
-rw-r--r--tests/tuples/tuint_tuple.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/tuples/tuint_tuple.nim b/tests/tuples/tuint_tuple.nim
new file mode 100644
index 000000000..24bcead5e
--- /dev/null
+++ b/tests/tuples/tuint_tuple.nim
@@ -0,0 +1,10 @@
+# bug #1986 found by gdmoore
+
+proc test(): int64 =
+  return 0xdeadbeef.int64
+
+const items = [
+  (var1: test(), var2: 100'u32),
+  (var1: test(), var2: 192'u32)
+]
+