diff options
Diffstat (limited to 'tests/pragmas/t13306.nim')
-rw-r--r-- | tests/pragmas/t13306.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pragmas/t13306.nim b/tests/pragmas/t13306.nim new file mode 100644 index 000000000..36713dd04 --- /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) |