☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
local3.C
☽
☼
gcc/testsuite/g++.old-deja/g++.other/local3.C
code
plain
raw
1
// { dg-do run }
2
// Bug: g++ lies about DECL_CONTEXT, so the backend thinks B::f is not
3
// function-local.
4
// Contributed by Jason Merrill <
[email protected]
>
5
6
struct A {
7
virtual void f () = 0;
8
};
9
10
int main()
11
{
12
struct B : public A {
13
void f () { }
14
};
15
16
B b;
17
}