From c33a0ed07fedb7d553bb679e18909c550092507a 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 0000000000000..36713dd049e09 --- /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)