2013-09-29 01:08:15 +02:00
|
|
|
|
2013-09-30 00:42:27 +02:00
|
|
|
#include "clang-static-init.hpp"
|
2013-09-29 01:08:15 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-30 00:42:27 +02:00
|
|
|
int
|
|
|
|
|
main (int, char**)
|
|
|
|
|
{
|
2013-10-06 18:50:53 +02:00
|
|
|
cout << "\nStart Testcase: invoking two instances of the configurable singleton factory...\n";
|
2013-09-30 00:42:27 +02:00
|
|
|
|
2013-10-06 18:50:53 +02:00
|
|
|
test::Subject& ref1 = test::fab.get();
|
|
|
|
|
test::Subject& sub2 = test::fabricate();
|
2013-09-30 00:42:27 +02:00
|
|
|
|
|
|
|
|
cout << "sub1="<< &ref1 << " sub2="<< &sub2 <<"\n";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|