| 6274 | } |
| 6275 | |
| 6276 | void enum1() { |
| 6277 | GET_SYMBOL_DB("enum BOOL { FALSE, TRUE }; enum BOOL b;"); |
| 6278 | |
| 6279 | /* there is a enum scope with the name BOOL */ |
| 6280 | ASSERT(db && db->scopeList.back().type == ScopeType::eEnum && db->scopeList.back().className == "BOOL"); |
| 6281 | |
| 6282 | /* b is a enum variable, type is BOOL */ |
| 6283 | ASSERT(db && db->getVariableFromVarId(1)->isEnumType()); |
| 6284 | } |
| 6285 | |
| 6286 | void enum2() { |
| 6287 | GET_SYMBOL_DB("enum BOOL { FALSE, TRUE } b;"); |
nothing calls this directly
no test coverage detected