Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.