We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662b130 commit 3aef8a0Copy full SHA for 3aef8a0
clang/test/Interpreter/force-codegen-dtor.cpp
@@ -0,0 +1,13 @@
1
+// UNSUPPORTED: system-aix
2
+
3
+// RUN: cat %s | clang-repl | FileCheck %s
4
+int *x = new int();
5
+template <class T> struct GuardX { T *&x; GuardX(T *&x) : x(x) {}; ~GuardX(); };
6
+template <class T> GuardX<T>::~GuardX() { delete x; x = nullptr; }
7
8
+// clang would normally defer codegen for ~GuardX()
9
+// Make sure that RuntimeInterfaceBuilder requests it explicitly
10
+(GuardX(x))
11
12
+// CHECK-NOT: Symbols not found
13
+// CHECK-NOT: _ZN6GuardXIiED2Ev
0 commit comments