LUMIERA.clone/research/clang-static-init-2.cpp

37 lines
374 B
C++
Raw Normal View History

#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 {
//
}
AccessPoint fab;
Subject&
fabricate()
{
return fab.get();
}
} // namespace test