diff options
author | Anders Carlsson <andersca@mac.com> | 2010-02-06 02:44:09 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-02-06 02:44:09 +0000 |
commit | b2bcf1c176b200b36f371e189ce22f93c86cdf45 (patch) | |
tree | e5fff0b1f46541f23f7d1df3991ec981a0f313d3 /test/CodeGenCXX/virtual-bases.cpp | |
parent | 1610b8198e31eb6d77d4d6904d6af88ef5cc6d3b (diff) |
Use the correct function info for constructors when applying function attributes. Fixes PR6245.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95474 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/virtual-bases.cpp')
-rw-r--r-- | test/CodeGenCXX/virtual-bases.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenCXX/virtual-bases.cpp b/test/CodeGenCXX/virtual-bases.cpp index 1eaef3fa3a..200f21a5da 100644 --- a/test/CodeGenCXX/virtual-bases.cpp +++ b/test/CodeGenCXX/virtual-bases.cpp @@ -15,3 +15,11 @@ struct B : virtual A { // CHECK: define void @_ZN1BC1Ev(%struct.B* %this) // CHECK: define void @_ZN1BC2Ev(%struct.B* %this, i8** %vtt) B::B() { } + +struct C : virtual A { + C(bool); +}; + +// CHECK: define void @_ZN1CC1Eb(%struct.B* %this, i1 zeroext) +// CHECK: define void @_ZN1CC2Eb(%struct.B* %this, i8** %vtt, i1 zeroext) +C::C(bool) { } |