summary refs log tree commit diff stats
path: root/tests/pragmas/tpragmas_misc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pragmas/tpragmas_misc.nim')
-rw-r--r--tests/pragmas/tpragmas_misc.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pragmas/tpragmas_misc.nim b/tests/pragmas/tpragmas_misc.nim
index 6dc2e6b80..adb7e73c3 100644
--- a/tests/pragmas/tpragmas_misc.nim
+++ b/tests/pragmas/tpragmas_misc.nim
@@ -68,3 +68,8 @@ block: # issue #10994
 
   proc a {.bar.} = discard # works
   proc b {.bar, foo.} = discard # doesn't
+
+block: # issue #22525
+  macro catch(x: typed) = x
+  proc thing {.catch.} = discard
+  thing()