]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/p10849a.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p10849a.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p10849a.C b/gcc/testsuite/g++.old-deja/g++.mike/p10849a.C
deleted file mode 100644 (file)
index d6d4656..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// prms-id: 10849
-
-struct A
-{
-  int comm;
-  A(int i) : comm(i) { }
-};
-
-struct S1 { char c1; };
-
-struct B : public S1, public A
-{
-  B(int i) : A(i) { }
-};
-
-struct C : public A
-{
-  C(int i) : A(i) { }
-};
-
-struct D : public B, public C
-{
-  virtual int g() {
-    int D::*pmd = (int C::*)&C::comm;
-    return (this->*pmd) == 42;
-  }
-  D() : B(41), C(42) { }
-} d;
-
-int main() {
-  if (! d.g())
-    return 1;
-}