diff options
Diffstat (limited to 'test/CodeGenCXX/rtti-linkage.cpp')
-rw-r--r-- | test/CodeGenCXX/rtti-linkage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGenCXX/rtti-linkage.cpp b/test/CodeGenCXX/rtti-linkage.cpp index b4caa86229..1050bae7cb 100644 --- a/test/CodeGenCXX/rtti-linkage.cpp +++ b/test/CodeGenCXX/rtti-linkage.cpp @@ -38,6 +38,9 @@ // CHECK: _ZTIFvvE = weak_odr // CHECK: _ZTIPFvvE = weak_odr constant +// CHECK: _ZTSN12_GLOBAL__N_11EE = internal constant +// CHECK: _ZTIN12_GLOBAL__N_11EE = internal constant + // A has no key function, so its RTTI data should be weak_odr. struct A { }; @@ -67,6 +70,10 @@ namespace { // D is inside an anonymous namespace, so all type information related to D should have // internal linkage. struct D { }; + + // E is also inside an anonymous namespace. + enum E { }; + }; const D getD(); @@ -80,6 +87,8 @@ const std::type_info &t2() { // internal linkage. (void)typeid(void (*)() throw (D)); + (void)typeid(E); + // CHECK: _ZTIN12_GLOBAL__N_11DE to return typeid(getD()); } |