Skip to content

Instantly share code, notes, and snippets.

@nanoant
Created May 27, 2015 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanoant/32e51813b2e25d475721 to your computer and use it in GitHub Desktop.
Save nanoant/32e51813b2e25d475721 to your computer and use it in GitHub Desktop.
deadstore.nim
{.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