repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
extern-c-redecl2.C
blob
055148f38417b5ab03c14055b689bc455e687adc
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin PR c++/41020
3
// { dg-do compile }
4
5
extern "C"
6
{
7
int fork (void);
8
}
9
10
class frok
11
{
12
int this_errno;
13
friend int fork (void);
14
};
15
16
extern "C" int
17
fork (void)
18
{
19
frok grouped;
20
return grouped.this_errno;
21
}