1// Contributed by Dodji Seketeli <dodji@redhat.com> 2// Origin PR c++/41020 3// { dg-do compile } 4 5extern "C" 6{ 7 int fork (void); 8} 9 10class frok 11{ 12 int this_errno; 13 friend int fork (void); 14}; 15 16extern "C" int 17fork (void) 18{ 19 frok grouped; 20 return grouped.this_errno; 21} 22