X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900127_01.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900127_01.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=7c24d08bc10dfb9f5e49225dad3e2ecf4d89c18f;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900127_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900127_01.C deleted file mode 100644 index 7c24d08b..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900127_01.C +++ /dev/null @@ -1,25 +0,0 @@ -// g++ 1.36.1 bug 900127_01 - -// g++ often fails to detect (and issue errors for) ambiguous overload -// situations. In such cases, one of the possibilities is chosen -// (apparently arbitrarily). Errors should be issued instead. - -// Cfront 2.0 passes this test. - -// keywords: function overloading, ambiguity - -void foo (int); -int foo (void); - -typedef int (*f_ptr_t1) (void); -typedef void (*f_ptr_t2) (int); - -void bar (f_ptr_t1); // ERROR - -void bar (f_ptr_t2); // ERROR - - -void function () -{ - bar (foo); // ERROR - ambiguous -} - -int main () { return 0; }