Debian Codegraph @

tests/rule-of-three/bug388677.cpp

raw
1 #include <stdio.h>
2
3 class A
4 {
5 public:
6 A()
7 {
8 }
9
10 ~A()
11 {
12 }
13
14 A(const A &) = delete;
15 A& operator=(const A &) = delete;
16 };
17
18 class B : public A
19 {
20 public:
21 B() : A()
22 {
23 i = 4;
24 }
25
26 ~B()
27 {
28 printf("%d\n", i);
29 }
30
31 int i;
32 };