| 5508 | } |
| 5509 | |
| 5510 | void uninitvar_configuration() { |
| 5511 | const Settings s = settingsBuilder(settings).checkLibrary().build(); |
| 5512 | |
| 5513 | checkUninitVar("int f() {\n" |
| 5514 | " int i, j;\n" |
| 5515 | " do {\n" |
| 5516 | " i = 0;\n" |
| 5517 | " return i;\n" |
| 5518 | " } while (0);\n" |
| 5519 | "}\n", s); |
| 5520 | ASSERT_EQUALS("", errout_str()); |
| 5521 | } |
| 5522 | |
| 5523 | void checkExpr() { |
| 5524 | checkUninitVar("struct AB { int a; int b; };\n" |
nothing calls this directly
no test coverage detected