fuhsnn / slimcc

C11 compiler with GNU extensions for x86-64 Linux, working towards C23
MIT License
36 stars 4 forks source link

`static inline` function wrongly omitted if referenced indirectly #81

Closed fuhsnn closed 1 month ago

fuhsnn commented 1 month ago
static inline void fn(void);
void (*ptr)(void) = fn;
int main(void) {
  ptr();
}
static inline void fn(void) {}

got "undefined reference to `fn'"