diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-06-02 06:16:02 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-06-02 06:16:02 +0000 |
commit | d1c1d7bd14dce533e8755164ff59988f2ea5da94 (patch) | |
tree | 291d1f0bd4f2c410ace2f855a847cbeb4ceb50c1 /test/CodeGenCXX/rtti-linkage.cpp | |
parent | c0441937328ee3907a05e6a97dc0c2ffd0c20c0b (diff) |
typeid() produces type information for the cv-unqualified version of
the type. Thanks to Anders for the bug report!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/rtti-linkage.cpp')
-rw-r--r-- | test/CodeGenCXX/rtti-linkage.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGenCXX/rtti-linkage.cpp b/test/CodeGenCXX/rtti-linkage.cpp index 9d85a2c69b..f8c1167b53 100644 --- a/test/CodeGenCXX/rtti-linkage.cpp +++ b/test/CodeGenCXX/rtti-linkage.cpp @@ -14,6 +14,7 @@ // CHECK: _ZTI1A = weak_odr constant // CHECK: _ZTI1B = constant // CHECK: _ZTI1C = internal constant +// CHECK: _ZTIA10_i = weak_odr constant // CHECK: _ZTIFN12_GLOBAL__N_11DEvE = internal constant // CHECK: _ZTIFvN12_GLOBAL__N_11DEE = internal constant // CHECK: _ZTIFvvE = weak_odr @@ -33,6 +34,7 @@ // CHECK: _ZTS1B = constant // CHECK: _ZTS1C = internal constant // CHECK: _ZTS1F = weak_odr constant +// CHECK: _ZTSA10_i = weak_odr constant // CHECK: _ZTSFN12_GLOBAL__N_11DEvE = internal constant // CHECK: _ZTSFvN12_GLOBAL__N_11DEE = internal constant // CHECK: _ZTSFvvE = weak_odr constant @@ -107,3 +109,12 @@ const std::type_info &t2() { return typeid(getD()); } + +namespace Arrays { + struct A { + static const int a[10]; + }; + const std::type_info &f() { + return typeid(A::a); + } +} |