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 c2ea84a commit a9e5abeCopy full SHA for a9e5abe
bolt/test/X86/skip-non-vfuncptr-reloc-in-relative-vtable.cpp
@@ -0,0 +1,25 @@
1
+// Test the fix that BOLT should skip speical handling of any non virtual
2
+// function pointer relocations in relative vtable.
3
+
4
+// RUN: %clang -fuse-ld=lld -o %t.so %s -Wl,-q \
5
+// RUN: -fexperimental-relative-c++-abi-vtables
6
+// RUN: llvm-bolt %t.so -o %t.bolted.so
7
8
+extern "C" unsigned long long _ZTVN10__cxxabiv117__class_type_infoE = 0;
9
+extern "C" unsigned long long _ZTVN10__cxxabiv120__si_class_type_infoE = 0;
10
11
+class A {
12
+public:
13
+ virtual void foo() {}
14
+};
15
16
+class B : public A {
17
+ virtual void foo() override {}
18
19
20
+int main() {
21
+ B b;
22
+ A *p = &b;
23
+ p->foo();
24
+ return 0;
25
+}
0 commit comments