From 2d3d7db730c7b554ef523b481b187acc8023691b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 21 May 2021 15:30:52 +0200 Subject: [PATCH] Uninitialized variables; fix syntax errors in test cases --- test/testuninitvar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testuninitvar.cpp b/test/testuninitvar.cpp index b819c4856..baceede00 100644 --- a/test/testuninitvar.cpp +++ b/test/testuninitvar.cpp @@ -1376,7 +1376,7 @@ private: " if (true) {;}\n" " else\n" " {\n" - " return 1;\n" + " return;\n" " }\n" " *p = 7;\n" // << " p = new int(9);\n" @@ -1490,7 +1490,7 @@ private: // arrays.. void uninitvar_arrays() { - checkUninitVar("int f()\n" + checkUninitVar("void f()\n" "{\n" " char a[10];\n" " a[a[0]] = 0;\n"