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
re PR c++/84691 (internal compiler error: in poplevel_class, at cp/name-lookup.c...
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
extern-c-redecl4.C
blob
f7fae78259c98b33bcf7fbab29fc2e8b26dbb8ab
1
// Contributed by Dodji Seketeli <dodji@redhat.com>
2
// Origin: PR c++/41020
3
4
// { dg-options "" }
5
// { dg-do compile }
6
7
class frok
8
{
9
int this_errno;
10
friend int fork (void);
11
};
12
13
void
14
foo ()
15
{
16
fork (); // { dg-error "was not declared in this scope" }
17
}