Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.other/linkage1.C

raw
1 // { dg-do assemble { target { ! c++11 } } }
2 typedef struct {
3 int i;
4 } *p;
5
6 void f (p) { } // { dg-error "with no linkage" }
7 p q; // { dg-warning "with no linkage" }
8
9 int main()
10 {
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" }
15 }