@@ -923,14 +923,17 @@ void KTestObjectParser::getTestParamView(const Tests::MethodDescription &methodD
923923 Tests::TestCaseDescription &testCaseDescription,
924924 const Tests::MethodParam& methodParam,
925925 std::shared_ptr<AbstractValueView> &testParamView) {
926- auto paramType = methodParam.type .maybeJustPointer () ? methodParam.type .baseTypeObj () : methodParam.type ;
926+ const auto usage = types::PointerUsage::PARAMETER;
927+ types::Type paramType = methodParam.type .arrayCloneMultiDim (usage);
928+ auto type = typesHandler.getReturnTypeToCheck (paramType);
929+
927930 if (CollectionUtils::containsKey (methodDescription.functionPointers , methodParam.name )) {
928931 testParamView = testParameterView (
929- emptyKleeParam, { paramType , methodParam.name }, PointerUsage::PARAMETER, testCaseDescription.lazyAddressToName ,
932+ emptyKleeParam, { type , methodParam.name }, PointerUsage::PARAMETER, testCaseDescription.lazyAddressToName ,
930933 testCaseDescription.lazyReferences , methodDescription);
931934 } else {
932935 const auto kleeParam = getKleeParamOrThrow (rawKleeParams, methodParam.name );
933- testParamView = testParameterView (kleeParam, { paramType , methodParam.name }, PointerUsage::PARAMETER,
936+ testParamView = testParameterView (kleeParam, { type , methodParam.name }, PointerUsage::PARAMETER,
934937 testCaseDescription.lazyAddressToName , testCaseDescription.lazyReferences ,
935938 methodDescription);
936939 }
0 commit comments