Skip to content
Snippets Groups Projects
Commit 9af6829b authored by Axel Naumann's avatar Axel Naumann
Browse files

[cling] Add storage to test types, to trigger dtor call.

parent 86dabde1
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,7 @@ V // CHECK-NEXT: (cling::Value &) boxes [(int [2][3][4]) { { { 1, 2, 3, 4 }, { 1
// Check lifetime of objects in Value
.rawInput 1
struct WithDtor {
char mem = 0;
static int fgCount;
WithDtor() { ++fgCount; }
WithDtor(const WithDtor&) { ++fgCount; }
......
......@@ -14,7 +14,7 @@
extern "C" int printf(const char*,...);
class A {
int m_A[2];
int m_A[2] = 0;
public:
A() {}
~A() { printf("A::~A()\n"); }
......@@ -43,6 +43,7 @@ public:
int gTest = 0;
class E {
char mem = 0;
public:
~E() { gTest = 101; }
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment