Files
Nim/tests/pragmas/t13306.nim
Tomohiro 2a4aa24620 Add sideEffect pragma to importC procs in posix, winlean and time module (#13370)
* Add sideEffect pragma to procs in winlean
* Add sideEffect pragma to procs in posix
* Add test for #13306
* Add sideEffect pragma to procs in times
* Fixes #13306
2020-02-08 20:09:49 +01:00

11 lines
154 B
Nim

discard """
errormsg: "'testEpo' can have side effects"
line: 8
"""
import times
func testEpo(x: float): float = epochTime() + x
echo testEpo(1.0)