6 ConfigFile(std::string filename, std::string delimiter) { throw "error"; }
7 ConfigFile(std::string filename) {}
10 struct Configuration {
11 ConfigFile _configFile;
13 Configuration(const std::string &root, const char *baseName)
14 : _configFile(root + baseName, "=") { }
15 Configuration(const std::string &root, const char *a, const char *b)
16 : _configFile(root + a + b) { }
21 std::string root("etc");
23 Configuration config(root, "notthere");
26 // exception is thrown, caught here and ignored...
28 Configuration config(root, "a", "b"); // ASAN error during constructor here
31 int main(int argc, const char *argv[]) {