Have a simple query with a yes/no answer
In LLVM world, are local-static class-objects initialized at load-time (on same lines as global class-objects)?
Have a simple query with a yes/no answer
In LLVM world, are local-static class-objects initialized at load-time (on same lines as global class-objects)?
From my testings, answer to the question is yes.
If constructors for global-class-objects are unabled to be invoked during load-time, then instantiating local-static-class-objects won’t work either. They seem to be handled in the same way.
Local-non-static-class-objects and class-objects-on-heap get instantiated fine, irrespective.