]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/net8.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / net8.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/net8.C b/gcc/testsuite/g++.old-deja/g++.mike/net8.C
deleted file mode 100644 (file)
index 1282317..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-
-class Base {
-public:
-  int foo;
-};
-
-class Derived : public Base {
-public:
-  int bar;
-};
-
-void func(Base&);              // ERROR - 
-
-void func2(const Derived& d) {
-  func(d);                     // ERROR - this is bad
-}
-
-void
-foo (int& a)
-{                              // ERROR - 
-}
-
-int main ()
-{
-  int b;
-  const int*const a = &b;
-  *a = 10;                             // ERROR - it's const
-  foo (*a);                            // ERROR - it's const
-  return 0;
-}