From: Christoph Mallon Date: Sat, 16 Aug 2008 07:03:31 +0000 (+0000) Subject: cp_error048: C99 §6.7.5.3 clause 8: "A declaration of a parameter as ``function retur... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=bfad7bee5424f389d4294dfc1dfd18b2a0af4c6d;p=cparser cp_error048: C99 §6.7.5.3 clause 8: "A declaration of a parameter as ``function returning type shall be adjusted to ``pointer to function returning type". [r21211] --- diff --git a/parsetest/cp_error048.c b/parsetest/cp_error048.c new file mode 100644 index 0000000..0262768 --- /dev/null +++ b/parsetest/cp_error048.c @@ -0,0 +1,8 @@ +static void f(void) {} +static void g(void p(void)) {} + +int main(void) +{ + g(f); + return 0; +}