X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Foperators8.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Foperators8.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=f1a1236a5995ea0c9752ffbd0b9d54c5a5c2f2c3;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/operators8.C b/gcc/testsuite/g++.old-deja/g++.law/operators8.C deleted file mode 100644 index f1a1236a..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/operators8.C +++ /dev/null @@ -1,51 +0,0 @@ -// GROUPS passed operators -#include - -class shape { - public: - virtual int vDisplay(void) const = 0; - protected: - int X; - int Y; -}; - -class square :public shape { - public: - square(int x, int y, int width_) { - X = x; - Y = y; - width = width_; - } - int vDisplay(void) const { - printf ("PASS\n"); - return 0; - } - protected: - int width; -}; - - -class triangle :public shape { - public: - triangle(int x, int y, int width_, int height_) { - X = x; - Y = y; - width = width_; - height = height_; - } - int vDisplay(void) const { - printf ("FAIL\n"); - return 1; - } - protected: - int width; - int height; -}; - -int main() { - shape* s1 = new square(4,4,5); - shape* s2 = new triangle(6,6,2,3); - *s1 = *s2; - return s1->vDisplay(); -} -