X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Fpretty2.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.ext%2Fpretty2.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=c0c953a0539a7f73b6055e97f2e97002a193aaf5;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.ext/pretty2.C b/gcc/testsuite/g++.old-deja/g++.ext/pretty2.C deleted file mode 100644 index c0c953a0..00000000 --- a/gcc/testsuite/g++.old-deja/g++.ext/pretty2.C +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (C) 1999, 2000 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 21 Nov 1999 - -// make sure __FUNCTION__ and __PRETTY_FUNCTION__ work in member functions - -#include -#include - -static bool bad = false; - -struct X -{ - X (); - ~X (); - void fn (); - operator int (); -}; - -X::X () -{ - char const *function = __FUNCTION__; - char const *pretty = __PRETTY_FUNCTION__; - - printf ("ctor\n"); - printf ("__FUNCTION__ %s\n", function); - printf ("__PRETTY_FUNCTION__ %s\n", pretty); - - if (strcmp (function, "X")) - bad = true; - if (strcmp (pretty, "X::X()")) - bad = true; -} -X::~X () -{ - char const *function = __FUNCTION__; - char const *pretty = __PRETTY_FUNCTION__; - - printf ("dtor\n"); - printf ("__FUNCTION__ %s\n", function); - printf ("__PRETTY_FUNCTION__ %s\n", pretty); - - if (strcmp (function, "X")) - bad = true; - if (strcmp (pretty, "X::~X()")) - bad = true; -} -void X::fn () -{ - char const *function = __FUNCTION__; - char const *pretty = __PRETTY_FUNCTION__; - - printf ("member fn\n"); - printf ("__FUNCTION__ %s\n", function); - printf ("__PRETTY_FUNCTION__ %s\n", pretty); - - if (strcmp (function, "fn")) - bad = true; - if (strcmp (pretty, "void X::fn()")) - bad = true; -} -X::operator int () -{ - char const *function = __FUNCTION__; - char const *pretty = __PRETTY_FUNCTION__; - - printf ("conversion\n"); - printf ("__FUNCTION__ %s\n", function); - printf ("__PRETTY_FUNCTION__ %s\n", pretty); - - if (strcmp (function, "operator i")) - bad = true; - if (strcmp (pretty, "X::operator int()")) - bad = true; - return 0; -} - -int main () -{ - { - X x; - - x.fn (); - (void)int (x); - } - return bad; -}