Skip to content

Commit 7e8325c

Browse files
committed
Fix empty configs in testpreprocessor
1 parent 4231529 commit 7e8325c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/testpreprocessor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ class TestPreprocessor : public TestFixture {
132132

133133
std::map<std::string, std::string> cfgcode;
134134
if (cfgs.empty()) {
135+
cfgs.push_back("");
135136
std::set<std::string> configDefines = { "__cplusplus" };
136137
preprocessor.getConfigs(filename, tokens, configDefines, cfgs);
137138
}

0 commit comments

Comments
 (0)