TestClass: Added a testcase where a array member variable is initialized through strcpy
This commit is contained in:
parent
c581753040
commit
0c479b8c9f
|
@ -415,6 +415,17 @@ private:
|
|||
"};\n");
|
||||
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
|
||||
checkUninitVar("class John\n"
|
||||
"{\n"
|
||||
"public:\n"
|
||||
" John() { strcpy(name, ""); }\n"
|
||||
"\n"
|
||||
"private:\n"
|
||||
" char name[255];\n"
|
||||
"};\n");
|
||||
|
||||
TODO_ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
void uninitVarEnum()
|
||||
|
|
Loading…
Reference in New Issue