☰
Debian Codegraph
@
1.17.1-1
/
/
tests
/
rule-of-three
/
bug388677.cpp
☽
☼
tests/rule-of-three/bug388677.cpp
code
plain
raw
LGPL-2+
2015-2020 Sergio Martins <
[email protected]
>; 2015, 2016, 2019-2020 Klarälvdalens Datakonsult AB, a KDAB Group company,
[email protected]
; 2015 Nyall Dawson <
[email protected]
>; 2015 Mathias Hasselmann <
[email protected]
>; 2015 Albert Astals Cid <
[email protected]
>; 2019 Christian Gagneraud <
[email protected]
>; 2019 Jean-Michaël Celerier <
[email protected]
>; 2019 Nikolai Kosjar <
[email protected]
>; 2020 Lucie Gerard <
[email protected]
>; 2020 The Qt Company Ltd.
debian/copyright
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
};