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

void f (p) { }			// { dg-error "with no linkage" }
p q;				// { dg-warning "with no linkage" }

int main()
{
  extern p j;			// { dg-warning "with no linkage" }
  struct A { int j; };
  extern A a;			// { dg-warning "with no linkage" }
  extern void f (A);		// { dg-error "with no linkage" }
}