X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Finline8.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Finline8.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=17965d9a90bf132fc2e7edb7bc1db0eb10f5a07e;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline8.C b/gcc/testsuite/g++.old-deja/g++.other/inline8.C deleted file mode 100644 index 17965d9a..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/inline8.C +++ /dev/null @@ -1,67 +0,0 @@ -// Origin: Gerald Pfeifer -// Special g++ Options: -O1 - -#include -#include - -using namespace std; - -class NAMES_ITEM - { -public: - char *name; - - NAMES_ITEM(const NAMES_ITEM& item2); - - NAMES_ITEM(const char* name2); - - ~NAMES_ITEM(); - - bool operator==(const NAMES_ITEM& n) const; - }; - - -NAMES_ITEM::NAMES_ITEM (const NAMES_ITEM& item2) - { - size_t length=std::strlen(item2.name); - - name=new char[length+1]; - std::memcpy(name,item2.name,length+1); - } - -NAMES_ITEM::NAMES_ITEM (const char* name2) - { - size_t length=std::strlen(name2); - - name=new char[length+1]; - std::memcpy(name,name2,length+1); - } - -NAMES_ITEM::~NAMES_ITEM () -{ - if (std::strcmp (name, "one") != 0) - abort (); - - name=0; -} - -bool NAMES_ITEM::operator==(const NAMES_ITEM& n) const -{ - return (std::strcmp(name,n.name) == 0); -} - -bool operator<(const NAMES_ITEM& n1, const NAMES_ITEM& n2) - { - return (std::strcmp(n1.name,n2.name) < 0); - } - - typedef map > lookup_t; - - lookup_t lookup; - - NAMES_ITEM item ("one"); -main() - { - lookup.insert(pair(item,0)); - } -