]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/other/const2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / other / const2.C
diff --git a/gcc/testsuite/g++.dg/other/const2.C b/gcc/testsuite/g++.dg/other/const2.C
deleted file mode 100644 (file)
index 86dde1e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// PR c++/3331: just because 'this' is readonly and bars[0].b is readonly
-// doesn't mean that the result of the member reference is readonly.
-
-struct foo
-{
-  int a;
-
-  struct bar
-  { int foo::* b ;};
-
-  static const bar bars[];
-
-  void bad ()
-  {
-    this->*(bars[0].b) = 42; // { dg-bogus "read-only" "" }
-  }
-};
-
-const foo::bar foo::bars[] = { { &foo::a } };
-
-int main ()
-{ }