summary refs log tree commit diff stats
path: root/tests/macros/t18203.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/macros/t18203.nim')
-rw-r--r--tests/macros/t18203.nim15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/macros/t18203.nim b/tests/macros/t18203.nim
new file mode 100644
index 000000000..aae0a2690
--- /dev/null
+++ b/tests/macros/t18203.nim
@@ -0,0 +1,15 @@
+discard """
+  matrix: "--hint:SuccessX:off --hint:Link:off --hint:Conf:off --hint:CC:off --hint:XDeclaredButNotUsed:on"
+  nimout: '''
+'''
+nimoutFull: true
+action: compile
+"""
+
+# bug #18203
+import std/macros
+
+macro foo(x: typed) = newProc ident"bar"
+proc bar() {.foo.} = raise
+bar()
+
f5cdf7 ^
28f5cdf7 ^
28f5cdf7 ^
11066f20 ^
28f5cdf7 ^
7b0022f8 ^
40fcddd2 ^
1b13ef7d ^
28f5cdf7 ^
2655d9e8 ^

11066f20 ^



40fcddd2 ^
11066f20 ^


2655d9e8 ^
28f5cdf7 ^

11066f20 ^

2655d9e8 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44