commit | aac6e3a6bbca5952263648e70cbd56d9f89cf4a2 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Sep 15 07:42:44 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Sep 15 07:42:44 2009 +0000 |
tree | 9b748acb8ead0bec25d3bb8fabdc80f70f8230e0 | |
parent | f6c213a931f8eedf91531f3204cc828f18466fd5 [diff] [blame] |
If a conversion operator exists in a base class, make sure to cast the object to that base class. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81852 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenCXX/conversion-function.cpp b/test/CodeGenCXX/conversion-function.cpp index e5f303c..0bfd4af 100644 --- a/test/CodeGenCXX/conversion-function.cpp +++ b/test/CodeGenCXX/conversion-function.cpp
@@ -79,11 +79,13 @@ // Test. Conversion in base class is visible in derived class. class XB { + int a; public: operator int(); }; class Yb : public XB { + double b; public: operator char(); };