summary refs log tree commit diff stats
path: root/tests/ccgbugs/t5296.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-11-12 11:19:24 +0100
committerGitHub <noreply@github.com>2021-11-12 11:19:24 +0100
commitc6fc3b2eae5aac68480a787b7fa3b81e3748bc2f (patch)
tree71916d0adcb4a76307b6b11719af51c606e9f76f /tests/ccgbugs/t5296.nim
parentf8b71f7075b68aefc3955388ad5ec3178aee7658 (diff)
downloadNim-c6fc3b2eae5aac68480a787b7fa3b81e3748bc2f.tar.gz
fixes #19051 [backport:1.6] (#19133)
Diffstat (limited to 'tests/ccgbugs/t5296.nim')
-rw-r--r--tests/ccgbugs/t5296.nim9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ccgbugs/t5296.nim b/tests/ccgbugs/t5296.nim
index 990b4bee2..8fbed35c4 100644
--- a/tests/ccgbugs/t5296.nim
+++ b/tests/ccgbugs/t5296.nim
@@ -1,6 +1,7 @@
 discard """
 cmd: "nim c -d:release $file"
-output: 1
+output: '''1
+-1'''
 """
 
 proc bug() : void =
@@ -12,3 +13,9 @@ proc bug() : void =
         echo x
 
 bug()
+
+# bug #19051
+type GInt[T] = int
+
+var a = 1
+echo -a