blob: d847110a7b55f42a410db1d8b0585f3b90ca6410 [file] [log] [blame]
#include "lib_static_init.h"
#include <stdio.h>
Foo::Foo()
{
/* increment the static variable */
value = ++Foo::counter;
fprintf(stderr, "Foo::Foo for this=%p called (counter = %d)\n", this, counter);
}
int Foo::getValue()
{
return value;
}
int Foo::counter;
Foo theFoo;