[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / construction-vtable-visibility.cpp
blob68457a18b9b0d337858530752bc6364b7ef2e811
1 // RUN: %clang_cc1 -triple x86_64-linux-unknown -fvisibility=hidden -emit-llvm %s -o - | FileCheck %s
3 struct Base {};
5 class Parent1 : virtual public Base {};
7 class Parent2 : virtual public Base {};
9 class Child : public Parent1, public Parent2 {};
11 void test() {
12 Child x;
15 // CHECK: @_ZTC5Child0_7Parent1 = linkonce_odr hidden unnamed_addr constant
16 // CHECK: @_ZTC5Child8_7Parent2 = linkonce_odr hidden unnamed_addr constant