summary refs log tree commit diff stats
path: root/tests/pragmas
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2018-04-23 17:02:38 +0800
committerAndreas Rumpf <rumpf_a@web.de>2018-04-23 11:02:38 +0200
commit72dfe176f5211f561263984a2df653f16dcf5466 (patch)
treefdfe465ee360ce63925753737a70973e3309dc7a /tests/pragmas
parenta8b70c550083e432f0028e6582c97d8310a48c8a (diff)
downloadNim-72dfe176f5211f561263984a2df653f16dcf5466.tar.gz
remove dead code elimination option (#7669)
Diffstat (limited to 'tests/pragmas')
-rw-r--r--tests/pragmas/tnoreturn.nim7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/pragmas/tnoreturn.nim b/tests/pragmas/tnoreturn.nim
index 4d00c6034..bb59b1c71 100644
--- a/tests/pragmas/tnoreturn.nim
+++ b/tests/pragmas/tnoreturn.nim
@@ -2,13 +2,16 @@ discard """
 ccodeCheck: "\\i @'__attribute__((noreturn))' .*"
 """
 
-proc noret1*(i: int) {.noreturn.} = 
+proc noret1*(i: int) {.noreturn.} =
   echo i
 
 
-proc noret2*(i: int): void {.noreturn.} = 
+proc noret2*(i: int): void {.noreturn.} =
   echo i
 
+noret1(1)
+noret2(2)
+
 var p {.used.}: proc(i: int): int
 doAssert(not compiles(
   p = proc(i: int): int {.noreturn.} = i # noreturn lambda returns int