diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-05-17 19:45:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-05-17 19:45:25 +0000 |
commit | 293279ae4351f4f17ce44aa4f72861d0bc74c918 (patch) | |
tree | 898d3757fdc81a029c0ebe99549d61fc2d5e95f4 | |
parent | 9dadd94e1c17fa030d1f88d8f2113ff59ccc6714 (diff) |
Test that mutability of class members that involve class definitions actually works
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103959 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/class.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/class.cpp b/test/SemaCXX/class.cpp index 09578e6900..287f50d63a 100644 --- a/test/SemaCXX/class.cpp +++ b/test/SemaCXX/class.cpp @@ -139,6 +139,11 @@ namespace pr6629 { namespace PR7153 { class EnclosingClass { + public: struct A { } mutable *member; }; + + void f(const EnclosingClass &ec) { + ec.member = 0; + } } |