Petr Hosek | 7c89521 | 2019-02-11 20:13:42 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple x86_64-linux-unknown -fvisibility hidden -emit-llvm %s -o - | FileCheck %s |
2 | |||||
3 | struct Base {}; | ||||
4 | |||||
5 | class Parent1 : virtual public Base {}; | ||||
6 | |||||
7 | class Parent2 : virtual public Base {}; | ||||
8 | |||||
9 | class Child : public Parent1, public Parent2 {}; | ||||
10 | |||||
11 | void 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 |