From c1206026dbf7a552b6959c88c57c416d9ef99ebe Mon Sep 17 00:00:00 2001 From: demotomohiro Date: Sat, 8 Feb 2020 01:42:03 +0900 Subject: [PATCH] Add test for #13306 --- tests/pragmas/t13306.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/pragmas/t13306.nim diff --git a/tests/pragmas/t13306.nim b/tests/pragmas/t13306.nim new file mode 100644 index 000000000000..36713dd049e0 --- /dev/null +++ b/tests/pragmas/t13306.nim @@ -0,0 +1,10 @@ +discard """ + errormsg: "'testEpo' can have side effects" + line: 8 +""" + +import times + +func testEpo(x: float): float = epochTime() + x + +echo testEpo(1.0)