X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Foverload12.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Foverload12.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=61d3740ed4155552ae03a64fcd272bd4bede22b3;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/overload12.C b/gcc/testsuite/g++.old-deja/g++.jason/overload12.C deleted file mode 100644 index 61d3740e..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/overload12.C +++ /dev/null @@ -1,15 +0,0 @@ -// PRMS Id: 4066 -// Bug: g++ doesn't notice the const on reference returns. - -struct B { - int foo() { return 1; } - int foo() const { return 0; } -}; - -B b_; -const B &b () { return b_; } - -int main() -{ - return b().foo(); -}