diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-17 04:38:23 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-17 04:38:23 +0000 |
commit | 657094b1ad9c0806d64e96e3faf15e7fcb0e8d65 (patch) | |
tree | 01de4c28c3ccd9b12adc8bdd437cdcc4285f25d6 /test/CodeGenCXX/mangle-subst.cpp | |
parent | 6862fc720b8e35ee4408822b2390020f263646b2 (diff) |
Treat an unqualified RecordType as a RecordDecl when substituting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mangle-subst.cpp')
-rw-r--r-- | test/CodeGenCXX/mangle-subst.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/mangle-subst.cpp b/test/CodeGenCXX/mangle-subst.cpp index fb0e990902..ffeaafd7fc 100644 --- a/test/CodeGenCXX/mangle-subst.cpp +++ b/test/CodeGenCXX/mangle-subst.cpp @@ -24,3 +24,11 @@ namespace A { // CHECK: define void @_Z1fN1A1AENS_1BE( void f(A::A a, A::B b) { } + +struct C { struct D { }; }; + +// CHECK: define void @_Z1fP1CNS_1DE +void f(C*, C::D) { } + +// CHECK: define void @_Z1fN1C1DEPKS_ +void f(C::D, const C*) { } |