Reverting merge from trunk
[official-gcc.git] / gcc / testsuite / g++.dg / lookup / extern-c-redecl5.C
blob51a342d433c7363bc7253c3916bf640d5ec72d3a
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // Origin: PR c++/41020
3 // { dg-do compile }
6 class frok
8   int this_errno;
9   friend int fork (void); // { dg-error "previous declaration .*?C\\+\\+. linkage" }
12 extern "C" int
13 fork (void) // { dg-error "conflicts with new declaration .*?C. linkage" }}
15   frok grouped;
16   return grouped.this_errno;