| 2737 | } |
| 2738 | |
| 2739 | void functionArgs5() { // #7650 |
| 2740 | GET_SYMBOL_DB("class ABC {};\n" |
| 2741 | "class Y {\n" |
| 2742 | " enum ABC {A,B,C};\n" |
| 2743 | " void f(enum ABC abc) {}\n" |
| 2744 | "};"); |
| 2745 | ASSERT_EQUALS(true, db != nullptr); |
| 2746 | const Token *f = Token::findsimplematch(tokenizer.tokens(), "f ( enum"); |
| 2747 | ASSERT_EQUALS(true, f && f->function()); |
| 2748 | const Function *func = f->function(); |
| 2749 | ASSERT_EQUALS(true, func->argumentList.size() == 1 && func->argumentList.front().type()); |
| 2750 | const Type * type = func->argumentList.front().type(); |
| 2751 | ASSERT_EQUALS(true, type->isEnumType()); |
| 2752 | } |
| 2753 | |
| 2754 | void functionArgs6() { // #7651 |
| 2755 | GET_SYMBOL_DB("class ABC {};\n" |
nothing calls this directly
no test coverage detected