Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.old-deja / g++.other / linkage1.C
blob8d9044544b36d88aa9c5bb7f755350f82404100f
1 // { dg-do assemble { target { ! c++11 } } }
2 typedef struct {
3   int i;
4 } *p;
6 void f (p) { }                  // { dg-error "with no linkage" }
7 p q;                            // { dg-warning "with no linkage" }
9 int main()
11   extern p j;                   // { dg-warning "with no linkage" }
12   struct A { int j; };
13   extern A a;                   // { dg-warning "with no linkage" }
14   extern void f (A);            // { dg-error "with no linkage" }