diff --git a/tests/lang_callable/macros/tmacrostmt.nim b/tests/lang_callable/macros/tmacrostmt.nim index 9c90845336..2a4466d8ff 100644 --- a/tests/lang_callable/macros/tmacrostmt.nim +++ b/tests/lang_callable/macros/tmacrostmt.nim @@ -114,8 +114,6 @@ proc fn6() = #------------------------------------ # bug #10807 -proc fn_unsafeaddr(x: int): int = - cast[int](unsafeAddr(x)) static: let fn1s = "proc fn1(x, y: int): int =\n result = 2 * (x + y)\n" @@ -124,7 +122,6 @@ static: let fn4s = "proc fn4(x: int): int =\n if x mod 2 == 0:\n return x + 2\n else:\n return 0\n" let fn5s = "proc fn5(a, b: float): float =\n result = -a * a / (b * b)\n" let fn6s = "proc fn6() =\n var a = @[1.0, 2.0]\n let z = a{0, 1}\n a{2} = 5.0\n" - let fnAddr = "proc fn_unsafeaddr(x: int): int =\n result = cast[int](unsafeAddr(x))\n" doAssert fn1.repr_to_string == fn1s doAssert fn2.repr_to_string == fn2s @@ -132,7 +129,6 @@ static: doAssert fn4.repr_to_string == fn4s doAssert fn5.repr_to_string == fn5s doAssert fn6.repr_to_string == fn6s - doAssert fn_unsafeaddr.repr_to_string == fnAddr #------------------------------------ # bug #8763