X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Foptimize3.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Foptimize3.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=737aabb3a7a359006b92f0033dadd030b87ef3ef;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/optimize3.C b/gcc/testsuite/g++.old-deja/g++.other/optimize3.C deleted file mode 100644 index 737aabb3..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/optimize3.C +++ /dev/null @@ -1,38 +0,0 @@ -// Special g++ Options: -O2 -// -// Copyright (C) 2001 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 29 May 2001 - -// Bug 2936. We ICE'd on tree inlining a function with an anonymous -// union decl. - -inline const unsigned char *Foo (const char *string) -{ - union - { - const char *p1; - const unsigned char *p2; - }; - p1 = 0; - p2 = 0; - - - p1 = string; - return p2; - -} - -const unsigned char *Baz (const char *string) -{ - return Foo (string); -} - -int main () -{ - const char *string = "s"; - const unsigned char *result; - - result = Baz (string); - return (static_cast (result) - != static_cast (string)); -}