summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/decl-4.c
blob: ce640c99c16a88efdad5017008836c6ba9610094 (plain)
1
2
3
4
5
6
7
8
9
10
/* Redeclaration of parameters is an error.  PR 13728.  */
/* { dg-do compile } */

void f (int fred,	/* { dg-message "note: previous definition" "" } */
	int fred);	/* { dg-error "redefinition of parameter" "" } */

void f2 (int fred,	/* { dg-message "note: previous definition" "" } */
	 int fred)	/* { dg-error "redefinition of parameter" "" } */
{
}
OpenPOWER on IntegriCloud