X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Finstantiate12.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.pt%2Finstantiate12.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=e1cc8534c8d3cc60e64f1bbc177acde755683359;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.pt/instantiate12.C b/gcc/testsuite/g++.old-deja/g++.pt/instantiate12.C deleted file mode 100644 index e1cc8534..00000000 --- a/gcc/testsuite/g++.old-deja/g++.pt/instantiate12.C +++ /dev/null @@ -1,50 +0,0 @@ - -// Copyright (C) 2000 Free Software Foundation, Inc. -// Contributed by Nathan Sidwell 14 Nov 2000 - -// Bug 635. We failed to emit initializer code for out-of-class defined -// static const members of template instantiations. - -static int inited = 0; - -static bool setFlag() -{ - inited++; - return true; -} - -template struct X -{ - static const bool cflag; - static bool flag; - static const bool iflag = true; - static const bool jflag = true; -}; - -template const bool X::cflag (setFlag ()); -template bool X::flag (setFlag ()); -template const bool X::iflag; - -int main () -{ - X a; - if (!a.flag) - return 1; - if (!a.cflag) - return 2; - if (!a.iflag) - return 3; - if (!a.jflag) - return 5; - if (!X::flag) - return 5; - if (!X::cflag) - return 6; - if (!X::iflag) - return 7; - if (!X::jflag) - return 8; - if (inited != 4) - return 9; - return 0; -}