summary refs log tree commit diff stats
path: root/tests/reject/tnotnil1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject/tnotnil1.nim')
-rw-r--r--tests/reject/tnotnil1.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/reject/tnotnil1.nim b/tests/reject/tnotnil1.nim
index 3535bbd63..222c77376 100644
--- a/tests/reject/tnotnil1.nim
+++ b/tests/reject/tnotnil1.nim
@@ -1,6 +1,6 @@
 discard """
   errormsg: "'y' is provably nil"
-  line:22
+  line:25
 """
 
 import strutils
@@ -15,6 +15,9 @@ proc q(x: pointer not nil) =
 
 proc p() =
   var x: pointer
+  if not x.isNil:
+    q(x)
+  
   let y = x
   if not y.isNil:
     q(y)
id='n33' href='#n33'>33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
51
52
53
54
55
56