#include <iostream>
#include <map>
#include <initializer_list>
using namespace std;
class Test {
std::map<const char*, void(*)()> m_ints;
public:
Test(std::initializer_list<std::pair<const char* const, void(*)()>> init):
m_ints(init)
{}
};
void testfunction(){
cout << "This is a test function"<<endl;
}
int main()
{
Test t = { {"hello", &testfunction} };
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8aW5pdGlhbGl6ZXJfbGlzdD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIFRlc3QgewogICAgc3RkOjptYXA8Y29uc3QgY2hhciosIHZvaWQoKikoKT4gbV9pbnRzOwpwdWJsaWM6CiAgICBUZXN0KHN0ZDo6aW5pdGlhbGl6ZXJfbGlzdDxzdGQ6OnBhaXI8Y29uc3QgY2hhciogY29uc3QsIHZvaWQoKikoKT4+IGluaXQpOgogICAgbV9pbnRzKGluaXQpCiAgICB7fQp9OwoKdm9pZCB0ZXN0ZnVuY3Rpb24oKXsKICAgIGNvdXQgPDwgIlRoaXMgaXMgYSB0ZXN0IGZ1bmN0aW9uIjw8ZW5kbDsKfQoKaW50IG1haW4oKQp7CiAgICBUZXN0IHQgPSB7IHsiaGVsbG8iLCAmdGVzdGZ1bmN0aW9ufSB9OwogICAgcmV0dXJuIDA7Cn0=