Debian Codegraph @

gcc/testsuite/g++.dg/lookup/extern-redecl1.C

raw
1 extern int X; // { dg-message "previous declaration" }
2 extern int Y (int); // { dg-message "old declaration" }
3 extern int Y (float);
4
5 static int Z (int s) // { dg-message "old declaration" }
6 {
7 return s;
8 }
9
10 void Foo ()
11 {
12 extern char X; // { dg-error "conflicting declaration" }
13 extern char Y (int); // { dg-error "ambiguating new declaration" }
14 extern int Y (float);
15 extern void Y (double);
16 extern char Z (int); // { dg-error "ambiguating new declaration" }
17 }
18