]> granicus.if.org Git - clang/commitdiff
Test that mutability of class members that involve class definitions actually works
authorDouglas Gregor <dgregor@apple.com>
Mon, 17 May 2010 19:45:25 +0000 (19:45 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 17 May 2010 19:45:25 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103959 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/class.cpp

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