diff --git a/test/testother.cpp b/test/testother.cpp index 5f100e160..e140d8acc 100644 --- a/test/testother.cpp +++ b/test/testother.cpp @@ -962,6 +962,13 @@ private: " p->abcd();\n" "}\n"); ASSERT_EQUALS("", errout.str()); + + checkUninitVar("class Fred\n" + "{\n" + " int i;\n" + " int a() { return i; }\n" + "};\n"); + TODO_ASSERT_EQUALS("", errout.str()); }