blob: 4d934c1045cf0a9a030acfdcf5b45aa6f7b1e2d2 [file] [log] [blame]
// Contributed by Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/41020
// { dg-do compile }
class frok
{
int this_errno;
friend int fork (void); // { dg-message "previous declaration .*?C\\+\\+. linkage" }
};
extern "C" int
fork (void) // { dg-error "conflicting declaration .*?C. linkage" }}
{
frok grouped;
return grouped.this_errno;
}