Created
May 27, 2015 13:36
-
-
Save nanoant/32e51813b2e25d475721 to your computer and use it in GitHub Desktop.
deadstore.nim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{.deadCodeElim: on.} | |
proc getValue(): int {.inline, noSideEffect.} = | |
debugEcho "got 1" | |
result = 1 | |
let x = getValue() | |
let y = getValue() | |
echo y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment