Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / weak-extern-typeinfo.cpp
blob932d36f4abbd2b187b3c3a042af68cdd78ff5bce
1 // RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
3 #define WEAK __attribute__ ((weak))
5 class WEAK A {
6 virtual void foo();
7 };
9 class B : public A {
10 virtual void foo();
12 void A::foo() { }
13 void B::foo() { }
15 class T {};
16 class T1 {};
18 class C : public T1, public B, public T {
19 virtual void foo();
21 void C::foo() { }
23 class V1 : public virtual A {
24 virtual void foo();
27 class V2 : public virtual V1 {
28 virtual void foo();
30 void V1::foo() { }
31 void V2::foo() { }
33 // CHECK: @_ZTS1A = weak_odr {{(dso_local |hidden )?}}constant
34 // CHECK: @_ZTI1A = weak_odr {{(dso_local |hidden )?}}constant
35 // CHECK: @_ZTS1B = weak_odr {{(dso_local |hidden )?}}constant
36 // CHECK: @_ZTI1B = weak_odr {{(dso_local |hidden )?}}constant
37 // CHECK: @_ZTS1C = weak_odr {{(dso_local |hidden )?}}constant
38 // CHECK: @_ZTS2T1 = linkonce_odr {{(dso_local |hidden )?}}constant
39 // CHECK: @_ZTI2T1 = linkonce_odr {{(dso_local |hidden )?}}constant
40 // CHECK: @_ZTS1T = linkonce_odr {{(dso_local |hidden )?}}constant
41 // CHECK: @_ZTI1T = linkonce_odr {{(dso_local |hidden )?}}constant
42 // CHECK: @_ZTI1C = weak_odr {{(dso_local |hidden )?}}constant
43 // CHECK: @_ZTS2V1 = weak_odr {{(dso_local |hidden )?}}constant
44 // CHECK: @_ZTI2V1 = weak_odr {{(dso_local |hidden )?}}constant
45 // CHECK: @_ZTS2V2 = weak_odr {{(dso_local |hidden )?}}constant
46 // CHECK: @_ZTI2V2 = weak_odr {{(dso_local |hidden )?}}constant