Hacker News new | ask | show | jobs
by RogerL 4694 days ago
Try putting this in an .h file that you include in several places:

void hi() { int x = 3; }

without the inline and you will get a complaint that hi() is multiply defined at link time. So, one use case.