X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Ftemps6.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.law%2Ftemps6.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=5290df072c3fff145f67aca5b082fe221dd7f3d5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.law/temps6.C b/gcc/testsuite/g++.old-deja/g++.law/temps6.C deleted file mode 100644 index 5290df07..00000000 --- a/gcc/testsuite/g++.old-deja/g++.law/temps6.C +++ /dev/null @@ -1,24 +0,0 @@ -// GROUPS passed temps -// Date: Tue, 22 Mar 94 12:46:28 +0100 -// From: dak@pool.informatik.rwth-aachen.de -// Message-Id: <9403221146.AA07815@messua> -// Subject: Bad code for pointer to member use as reference in g++ 2.5.8 - -#include -struct str { - int i; -} xxx = {0}; - -int& test(str *arg1, int str::*arg2) -{ - return (arg1->*arg2); -} - -int main() -{ - test(&xxx, &str::i) = 5; - if (xxx.i == 0) - { printf ("FAIL\n"); return 1; } - else - printf ("PASS\n"); -}