X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fnet8.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.mike%2Fnet8.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=12823175a245ffa29e8edf26792a7f35809259e0;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git 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 12823175..00000000 --- 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; -}