Test that mutability of class members that involve class definitions actually works

llvm-svn: 103959
This commit is contained in:
Douglas Gregor 2010-05-17 19:45:25 +00:00
parent 3b05bdba5a
commit c4c574bd2e
1 changed files with 5 additions and 0 deletions

View File

@ -139,6 +139,11 @@ namespace pr6629 {
namespace PR7153 {
class EnclosingClass {
public:
struct A { } mutable *member;
};
void f(const EnclosingClass &ec) {
ec.member = 0;
}
}