Commit 88fa5197 by Mark Mitchell

Revert last patch

From-SVN: r34486
parent 7775bd6b
// Copyright (C) 1999, 2000 Free Software Foundation, Inc. // Copyright (C) 1999 Free Software Foundation, Inc.
// Contributed by Nathan Sidwell 21 Nov 1999 <nathan@acm.org> // Contributed by Nathan Sidwell 21 Nov 1999 <nathan@acm.org>
// make sure __FUNCTION__ and __PRETTY_FUNCTION__ work in member functions // make sure __FUNCTION__ and __PRETTY_FUNCTION__ work in member functions
...@@ -67,7 +67,7 @@ X::operator int () ...@@ -67,7 +67,7 @@ X::operator int ()
printf ("__FUNCTION__ %s\n", function); printf ("__FUNCTION__ %s\n", function);
printf ("__PRETTY_FUNCTION__ %s\n", pretty); printf ("__PRETTY_FUNCTION__ %s\n", pretty);
if (strcmp (function, "operator i")) if (strcmp (function, "__opi"))
bad = true; bad = true;
if (strcmp (pretty, "X::operator int ()")) if (strcmp (pretty, "X::operator int ()"))
bad = true; bad = true;
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
// Simplified for testsuite by Alexandre Oliva // Simplified for testsuite by Alexandre Oliva
struct foo { operator long double(); }; struct foo { operator long double(); };
int bar(int __opr); // gets bogus error int bar(int __opr); // gets bogus error - XFAIL *-*-*
// Build don't link: // Build don't link:
// Special g++ Options: -fno-squangle
// Origin: Mark Mitchell <mark@codesourcery.com> // Origin: Mark Mitchell <mark@codesourcery.com>
#if (!defined (__GXX_ABI_VERSION) || __GXX_ABI_VERSION < 100)
#define NAME(OLD, NEW) OLD
#else
#define NAME(OLD, NEW) NEW
#endif /* (!defined (__GXX_ABI_VERSION) || __GXX_ABI_VERSION < 100) */
static unsigned int strlen (const char*) {} // ERROR - previous declaration static unsigned int strlen (const char*) {} // ERROR - previous declaration
int _Z6strlenPKc = 0; // ERROR - duplicate declaration int NAME (strlen__FPCc, _Z6strlenPKc) = 0; // ERROR - duplicate declaration
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment