Added missing checks for forward declarations of the main() function.
More accurate diagnosis on implicit 'int' type specifiers.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user