lumiera_/research/clang-static-init-1.cpp
Ichthyostega 675b2070ce bughunt: attempt to rebuild the problematic structure stand-alone... --> MISS
this is only a stripped-down version of the basic singleton, without
the indirection. Unsurprisingly, this doesn't exhibit the problem yet
2013-10-06 23:17:18 +02:00

26 lines
335 B
C++

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