aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net8.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.mike/net8.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.mike/net8.C32
1 files changed, 0 insertions, 32 deletions
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
index 12823175a24..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.mike/net8.C
+++ /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;
-}