summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/typedef-var-2.c
blob: 716d29ca3232fdd1837d03c4324ea7d15e5c47ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR c/91815 */
/* { dg-do compile } */

int f (void)
{
  extern float v;   

  return (v > 0.0f);
}

extern int t;

typedef float t; /* { dg-error "redeclared as different kind of symbol" } */

t v = 4.5f;