Fixed missing diagnosis on function parameter lists with trailing commas.
This commit is contained in:
3
test/err/bug2301-trailing-coma-1.c
Normal file
3
test/err/bug2301-trailing-coma-1.c
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Bug #2301 - Function parameter list with an extra trailing comma should not compile */
|
||||
|
||||
int foo(int a,); /* Should fail */
|
||||
6
test/err/bug2301-trailing-coma-2.c
Normal file
6
test/err/bug2301-trailing-coma-2.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user