blob: c687eb0f092f956019a9356e52480f832b7170ca [file] [log] [blame]
#include <cstdio>
// Since this is a global variable, its constructor will be called before
// main() is executed. But only if the object file containing it actually
// gets linked into the executable.
struct Foo {
Foo() {
printf("static-initializer.");
fflush(stdout);
}
} FOO;