aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/decl-2.c
blob: 40d744c926b809305d3b41496536a2363f6afcc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/7411 */
/* Contributed by Christian Ehrhardt */
/* Added extra line-breaks to check that diagnostics refer to correct token.
   --Per Bothner. */
/* { dg-do compile } */

void foo(void)
{
  char
    c	/* { dg-message "note: previous declaration" } */
    ;
  int i;
  int
    c	/* { dg-error "conflicting types" } */
    = i;
}