Hacker News new | ask | show | jobs
by archgoon 2761 days ago
Nope; doesn't work for clang. Clang actually detects and compiles the algebraic closed form sum(i^2, n) for a bound n.
1 comments

You'd have to use "volatile int n"