X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fmentor1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Fmentor1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=a9362e07da84e02029498015c0d4aabfe1daf17a;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/mentor1.C b/gcc/testsuite/g++.old-deja/g++.law/mentor1.C deleted file mode 100644 index a9362e07..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/mentor1.C +++ /dev/null @@ -1,21 +0,0 @@ -// Build don't link: -// Special g++ Options: -O -// GROUPS passed mentor -struct Word { - struct S1 *p1; -}; -struct S1 { - Word o; - void shift_left(int delta, int ct); -}; -inline void S1::shift_left(int delta, int ct) -{ - int cnt = ct; - for (S1 *to_p = this, *from_p = to_p + delta; cnt--;) *to_p++ = *from_p++; -} - -void dispose_t(S1 *tp, int from_index, int ct, const int d_last_t) -{ - int new_ct = d_last_t + 1 - ct; - tp[0].o.p1[from_index].shift_left(ct, new_ct - from_index); -}