summary refs log tree commit diff stats
path: root/tests/controlflow/tstatret.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/controlflow/tstatret.nim')
-rw-r--r--tests/controlflow/tstatret.nim9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/controlflow/tstatret.nim b/tests/controlflow/tstatret.nim
index d655f5595..a3558e6f4 100644
--- a/tests/controlflow/tstatret.nim
+++ b/tests/controlflow/tstatret.nim
@@ -1,12 +1,9 @@
 discard """
-  file: "tstatret.nim"
-  line: 9
-  errormsg: "statement not allowed after"
+  nimout: '''
+tstatret.nim(9, 7) Warning: unreachable code after 'return' statement or '{.noReturn.}' proc [UnreachableCode]
+'''
 """
 # no statement after return
 proc main() =
   return
   echo("huch?") #ERROR_MSG statement not allowed after
-
-
-