lumiera_documentation/research/clang-static-init-1.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

30 lines
403 B
C++

#include "lib/test/run.hpp"
#include "clang-static-init.hpp"
#include <iostream>
using ::test::Test;
using std::cout;
using std::endl;
using namespace test;
int
main (int, char**)
{
cout << "\n.gulp.\n";
Factory fab1;
Subject& ref1 = fab1();
Subject& sub2 = test::fabricate();
cout << "sub1="<< &ref1 << " sub2="<< &sub2 <<"\n";
return 0;
}