]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.law/arm12.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / arm12.C
diff --git a/gcc/testsuite/g++.old-deja/g++.law/arm12.C b/gcc/testsuite/g++.old-deja/g++.law/arm12.C
deleted file mode 100644 (file)
index 49d39d5..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-// Build don't link: 
-// GROUPS passed ARM-compliance
-// arm file
-// From: belley@cae.ca (Benoit Belley 3218)
-// Subject: Bad access control with private constructor and derivation
-// Date: Fri, 28 May 1993 12:39:57 -0400 (EDT)
-
-#include <iostream>
-
-class X
-{
-public:
-  void f();
-
-private:
-  X();
-};
-
-class Y : public X
-{
-public:
-  Y();
-};
-
-X::X()
-{// ERROR - .*
-  std::cout << "X::X()" << std::endl;
-}
-
-void X::f()
-{
-  std::cout << "X::f()" << std::endl;
-}
-
-Y::Y()
-{// ERROR -  within this
-  std::cout << "Y::Y()" << std::endl;
-}
-
-
-int main()
-{
-  Y y;
-  y.f();
-}
-
-
-
-