Created
November 2, 2013 20:23
-
-
Save o11c/7283088 to your computer and use it in GitHub Desktop.
What __attribute__((error)) should accept (neither clang nor gcc generates any call even at -O0).
This file contains 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
__attribute__((error("don't call me"))) | |
void dont_call_me(); | |
inline | |
void wrapper() | |
{ | |
dont_call_me(); | |
} | |
void conditional() | |
{ | |
if (0) | |
dont_call_me(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment