#include <iostream>
using std::cout;
struct Test {
operator bool() const {
return true;
}
};
int main(int argc, char** argv) {
Test test;
if (test["wut"])
cout << "Success (test[\"wut\"])\n";
if (test["a"])
cout << "unreachable\n";
if (test[""])
cout << "UB\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgc3RkOjpjb3V0OwoKc3RydWN0IFRlc3QgewogICAgb3BlcmF0b3IgYm9vbCgpIGNvbnN0IHsKICAgICAgICByZXR1cm4gdHJ1ZTsKICAgIH0KfTsKCmludCBtYWluKGludCBhcmdjLCBjaGFyKiogYXJndikgewogICAgVGVzdCB0ZXN0OwoKICAgIGlmICh0ZXN0WyJ3dXQiXSkKICAgICAgICBjb3V0IDw8ICJTdWNjZXNzICh0ZXN0W1wid3V0XCJdKVxuIjsKICAgICAgICAKICAgIGlmICh0ZXN0WyJhIl0pCiAgICAgICAgY291dCA8PCAidW5yZWFjaGFibGVcbiI7CgogICAgaWYgKHRlc3RbIiJdKQogICAgICAgIGNvdXQgPDwgIlVCXG4iOwogICAgICAgIAogICAgcmV0dXJuIDA7Cn0K