From: Moritz Kroll Date: Tue, 5 Aug 2008 01:12:15 +0000 (+0000) Subject: Wrong 'static decl after non-static decl' error X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2fe7ae3a6abe211c2e8c8a98818864b1dffa4c4c;p=cparser Wrong 'static decl after non-static decl' error [r20977] --- diff --git a/parsetest/cp_error040.c b/parsetest/cp_error040.c new file mode 100644 index 0000000..37aa285 --- /dev/null +++ b/parsetest/cp_error040.c @@ -0,0 +1,7 @@ +extern int a; // this should reference an "a" defined in another file +static int a; + +int main(void) +{ + return 0; +}