LUMIERA.clone/research/clang-static-init-1.cpp
2013-10-06 23:17:18 +02:00

18 lines
346 B
C++

#include "clang-static-init.hpp"
int
main (int, char**)
{
cout << "\nStart Testcase: invoking two instances of the configurable singleton factory...\n";
test::Subject& ref1 = test::fab.get();
test::Subject& sub2 = test::fabricate();
cout << "sub1="<< &ref1 << " sub2="<< &sub2 <<"\n";
return 0;
}