blob: 127e1b19055942521d9ff830f14eaf31f03d5995 [file] [log] [blame]
Petr Hosek7c895212019-02-11 20:13:42 +00001// RUN: %clang_cc1 -triple x86_64-linux-unknown -fvisibility hidden -emit-llvm %s -o - | FileCheck %s
2
3struct Base {};
4
5class Parent1 : virtual public Base {};
6
7class Parent2 : virtual public Base {};
8
9class Child : public Parent1, public Parent2 {};
10
11void test() {
12 Child x;
13}
14
15// CHECK: @_ZTC5Child0_7Parent1 = linkonce_odr hidden unnamed_addr constant
16// CHECK: @_ZTC5Child8_7Parent2 = linkonce_odr hidden unnamed_addr constant