blob: d0a098cd0c28a4056349fca68b51fc1914839b28 [file] [log] [blame] [edit]
#include "test_whole_archive_foo.h"
#include <string>
#include <map>
bug::Foo f("baz", 4);
namespace bug {
static std::map<std::string, int>* thing = nullptr;
int get_thing(std::string name) {
return (*thing)[name];
}
void init(std::string name, int count) {
if (thing == nullptr) thing = new std::map<std::string, int>;
(*thing)[name] = count;
}
} // namespace bug