summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test25-03.txt4
-rw-r--r--test/test25-04.txt4
-rw-r--r--test/test25-05.txt4
3 files changed, 12 insertions, 0 deletions
diff --git a/test/test25-03.txt b/test/test25-03.txt
index 6b04a13..c29ea4c 100644
--- a/test/test25-03.txt
+++ b/test/test25-03.txt
@@ -105,6 +105,10 @@ integer_cst 1: ptr0,
function_decl test1:
if_stmt :
ne_expr :
+test25.cpp: In member function 'int Object1::test1(Data1*)':
+test25.cpp:37:9: warning: Useless variable check 'ptr1'. It already was checked before
+ if (ptr1)
+ ^
parm_decl ptr1:
pointer_type :
record_type :
diff --git a/test/test25-04.txt b/test/test25-04.txt
index 0b6869b..139cd1e 100644
--- a/test/test25-04.txt
+++ b/test/test25-04.txt
@@ -1,3 +1,7 @@
+test25.cpp: In member function 'int Object1::test1(Data1*)':
+test25.cpp:37:9: warning: Useless variable check 'ptr1'. It already was checked before
+ if (ptr1)
+ ^
test25.cpp: In member function 'void Object1::func2(Data1*)':
test25.cpp:50:14: warning: warning: possible null argument 'ptr1' where non-null required
test1(ptr1);
diff --git a/test/test25-05.txt b/test/test25-05.txt
index 228415f..98f898d 100644
--- a/test/test25-05.txt
+++ b/test/test25-05.txt
@@ -1,3 +1,7 @@
+test25.cpp: In member function 'int Object1::test1(Data1*)':
+test25.cpp:37:9: warning: Useless variable check 'ptr1'. It already was checked before
+ if (ptr1)
+ ^
test25.cpp: In member function 'void Object1::func1(Data1*)':
test25.cpp:45:22: warning: null argument where non-null required (argument 2) [-Wnonnull]
test1(nullptr);