summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/linkage1.C
blob: 65a2848a2b1557e1b9b537d3f61679e3fc951f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
typedef struct {
  int i;
} *p;

void f (p) { }			// ERROR - function uses anonymous type
p q;

int main()
{
  extern p j;
  struct A { int j; };
  extern A a;			// ERROR - extern uses local type
  extern void f (A);		// ERROR - extern uses local type
}