X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.benjamin%2Ftem05.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.benjamin%2Ftem05.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=fc6af32938c95ecb6271f06a46a120924c83ce22;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C deleted file mode 100644 index fc6af329..00000000 --- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C +++ /dev/null @@ -1,58 +0,0 @@ -// 980924 bkoz -// just a quick test for export, to make sure we are warning for it. -// CHANGE ME when it's supported -// Build don't link: - - -// 14 Templates -//p 6 -// A namespace-scope declaration or definintion of a non-line function -// template, a non-inline member function template, a non-inline -// member function of a class template or a static data member of a -// class template may be preceeded by the export keyword. If such a -// template is defined in the same translation unit in which it is -// declared as exported, the definition is considered to be -// exported. The first declaration of the template containing the -// export keyword must not follow the definition. (meaning that export -// can't beredeclared as non-export??) - -// 1 -// template definition -export template // WARNING - -bool templ_one(T a) { - if (a > 0) - return true; - else - return false; -} - - -// 2 -// static data, mf, mf template -template -class X_one { - unsigned short id; - T type; -public: - static const bool is_specialized ; - - X_one(const unsigned short& us = 5): id(us), type(T(0)) {} - unsigned short ret_id (); - template bool compare_ge(T2 test); -}; - -export template // WARNING - -const bool X_one::is_specialized = false; - -export template // WARNING - -unsigned short X_one::ret_id() { - return id; -} - -export template // WARNING - -bool compare_ge(T2 test) { - if (test > type) - return true; - return false; -} -