summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/decl8.C
blob: 705fc6c5df8c942af8042aeefd22b3a39669cea8 (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do assemble  }
// Origin: Sergei Organov <osv@javad.ru>

void foo(void)
{
  extern int i;    // { dg-error "" } previous declaration
  extern double i; // { dg-error "" } conflicting type
  extern int j;
  extern int j;
}