Added missing checks for forward declarations of the main() function.

More accurate diagnosis on implicit 'int' type specifiers.
This commit is contained in:
acqn
2024-01-23 14:33:05 +08:00
parent bea2e86210
commit ba75a2ac26
5 changed files with 50 additions and 70 deletions

View File

@@ -33,4 +33,6 @@ inline int main(void) /* Error */
f2b(); /* Still imported */
}
inline int main(void); /* Error */
/* Warning: non-external inline functions declared but undefined in TU */