☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-base4.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-base4.C
code
plain
raw
1
// PR c++/46626
2
// { dg-do run { target c++11 } }
3
4
struct A
5
{
6
virtual void f () = 0;
7
virtual ~A () { }
8
};
9
10
struct B : A
11
{
12
virtual void f () { }
13
};
14
15
static void
16
foo (A *a)
17
{
18
a->f ();
19
}
20
21
int
22
main ()
23
{
24
B b;
25
foo (&b);
26
return 0;
27
}