diff options
| -rw-r--r-- | tccgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2985,6 +2985,9 @@ static void post_type(CType *type, AttributeDef *ad) if (tok == '(') { /* function declaration */ + if ((type->t & VT_STATIC) && local_stack) { + error("Function without file scope cannot be static"); + } next(); l = 0; first = NULL; |
