LUMIERA.clone/research/clang-static-init-2.cpp
Ichthyostega 72bd94e141 bughunt: replace the ConfigResolver with a direct instantiation of Singleton -> MISS
thus not lib::Singleton is the culprit, it must be lib::SingletonSubclass
2013-10-06 23:17:18 +02:00

35 lines
384 B
C++

#include "clang-static-init.hpp"
#include <iostream>
using std::cout;
using std::endl;
namespace test {
int Subject::cnt = 0;
Subject::Subject()
{
++cnt;
std::cout << "Subject("<<cnt<<")\n";
}
namespace {
// Holder<Subject> fab2;
Factory fab2;
}
Subject&
fabricate()
{
return fab2();
}
} // namespace test