repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warnings occured during profiledboostrap on
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb60.C
blob
ea80a4ce2e1cbec69bcc1f6ff066781f01b1a02b
1
// { dg-do assemble }
2
#include <string>
3
4
class t {
5
public:
6
t(const std::string& s) : s_(s) {}
7
std::string s_;
8
static t* t_;
9
};
10
11
t* t::t_;
12
13
t* makeT()
14
{
15
return new t("test");
16
return t::t_ ? t::t_ :
17
t::t_ = new t("test");
18
}