Fixed missing diagnosis on function parameter lists with trailing commas.

This commit is contained in:
acqn
2023-12-13 22:57:32 +08:00
parent bc97bce8c1
commit f8fe1d1560
3 changed files with 78 additions and 38 deletions

View File

@@ -0,0 +1,3 @@
/* Bug #2301 - Function parameter list with an extra trailing comma should not compile */
int foo(int a,); /* Should fail */

View File

@@ -0,0 +1,6 @@
/* Bug #2301 - Function parameter list with an extra trailing comma should not compile */
int bar(a,) int a; /* Should fail */
{
return a;
}