| 6284 | } |
| 6285 | |
| 6286 | void enum2() { |
| 6287 | GET_SYMBOL_DB("enum BOOL { FALSE, TRUE } b;"); |
| 6288 | |
| 6289 | /* there is a enum scope with the name BOOL */ |
| 6290 | ASSERT(db && db->scopeList.back().type == ScopeType::eEnum && db->scopeList.back().className == "BOOL"); |
| 6291 | |
| 6292 | /* b is a enum variable, type is BOOL */ |
| 6293 | ASSERT(db && db->getVariableFromVarId(1)->isEnumType()); |
| 6294 | } |
| 6295 | |
| 6296 | void enum3() { |
| 6297 | GET_SYMBOL_DB("enum ABC { A=11,B,C=A+B };"); |
nothing calls this directly
no test coverage detected