Fix warnings occured during profiledboostrap on
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / eb60.C
blobea80a4ce2e1cbec69bcc1f6ff066781f01b1a02b
1 // { dg-do assemble  }
2 #include <string>
4 class t {
5 public:
6        t(const std::string& s) : s_(s) {}
7        std::string s_;
8        static t* t_;
9 };
11 t* t::t_;
13 t* makeT()
15        return new t("test");
16        return t::t_ ? t::t_ :
17         t::t_ = new t("test");