[cfe-commits] r103959 - /cfe/trunk/test/SemaCXX/class.cpp
Douglas Gregor
dgregor at apple.com
Mon May 17 12:45:25 PDT 2010
Author: dgregor
Date: Mon May 17 14:45:25 2010
New Revision: 103959
URL: http://llvm.org/viewvc/llvm-project?rev=103959&view=rev
Log:
Test that mutability of class members that involve class definitions actually works
Modified:
cfe/trunk/test/SemaCXX/class.cpp
Modified: cfe/trunk/test/SemaCXX/class.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/class.cpp?rev=103959&r1=103958&r2=103959&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/class.cpp (original)
+++ cfe/trunk/test/SemaCXX/class.cpp Mon May 17 14:45:25 2010
@@ -139,6 +139,11 @@
namespace PR7153 {
class EnclosingClass {
+ public:
struct A { } mutable *member;
};
+
+ void f(const EnclosingClass &ec) {
+ ec.member = 0;
+ }
}
More information about the cfe-commits
mailing list