From 555abab2c686a3d2387e078af2ad67f5d96b3f34 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Jul 2015 17:03:41 +0300 Subject: Update test results. --- test/test12-03.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'test/test12-03.txt') diff --git a/test/test12-03.txt b/test/test12-03.txt index 010f405..ce12b21 100644 --- a/test/test12-03.txt +++ b/test/test12-03.txt @@ -16,9 +16,10 @@ field_decl val: ptr2, integer_cst 32: ptr2, integer_type : ptr2, test12.cpp: In member function 'void Object1::func1(Data1*, Data1*)': -test12.cpp:13:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer int val1 = ptr1 ? ptr1->val : ptr2->val; ^ +test12.cpp:13:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, parm_decl ptr2: ptr1, ptr2, @@ -92,6 +93,7 @@ parm_decl ptr1: ptr2, field_decl val: ptr2, integer_cst 32: ptr2, integer_type : ptr2, +test12.cpp:13:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp:13:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, @@ -116,15 +118,17 @@ pointer_type : ptr1, ptr2, integer_cst 64: ptr1, ptr2, integer_cst 0: ptr1, ptr2, test12.cpp: In member function 'void Object1::func2(Data1*, Data1*)': -test12.cpp:18:13: warning: Using field 'ptr1' without checking for null pointer +test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer int val1 = (!ptr1) ? ptr1->val : ptr2->val; ^ +test12.cpp:18:13: warning: Using field 'ptr1' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, parm_decl ptr1: ptr1, ptr2, field_decl val: ptr1, ptr2, integer_cst 32: ptr1, ptr2, integer_type : ptr1, ptr2, +test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp:18:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr2, indirect_ref : ptr2, @@ -195,6 +199,7 @@ parm_decl ptr1: ptr1, ptr2, pointer_type : ptr1, ptr2, integer_cst 64: ptr1, ptr2, integer_cst 0: ptr1, ptr2, +test12.cpp:18:13: warning: Using variable 'ptr1' without checking for null pointer test12.cpp:18:13: warning: Using field 'ptr1' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, @@ -202,6 +207,7 @@ parm_decl ptr1: ptr1, ptr2, field_decl val: ptr1, ptr2, integer_cst 32: ptr1, ptr2, integer_type : ptr1, ptr2, +test12.cpp:18:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp:18:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr2, indirect_ref : ptr2, @@ -234,9 +240,10 @@ field_decl val: ptr2, integer_cst 32: ptr2, integer_type : ptr2, test12.cpp: In member function 'void Object1::func3(Data1*, Data1*)': -test12.cpp:23:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer int val1 = (ptr1 && !ptr2) ? ptr1->val : ptr2->val; ^ +test12.cpp:23:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, parm_decl ptr2: ptr1, ptr2, @@ -314,6 +321,7 @@ parm_decl ptr1: ptr2, field_decl val: ptr2, integer_cst 32: ptr2, integer_type : ptr2, +test12.cpp:23:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp:23:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, @@ -665,9 +673,10 @@ eq_expr : ptr1, ptr2, parm_decl ptr2: ptr1, ptr2, integer_cst 0: ptr1, ptr2, test12.cpp: In member function 'void Object1::func7(Data1*, Data1*)': -test12.cpp:50:13: warning: Using field 'ptr2' without checking for null pointer +test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer int tmp = ptr1 ? ptr1->val : (!ptr2 ? ptr2->val : 0); ^ +test12.cpp:50:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, parm_decl ptr2: ptr1, ptr2, @@ -753,6 +762,7 @@ cond_expr : ptr1, ptr2, eq_expr : ptr1, ptr2, parm_decl ptr2: ptr1, ptr2, integer_cst 0: ptr1, ptr2, +test12.cpp:50:13: warning: Using variable 'ptr2' without checking for null pointer test12.cpp:50:13: warning: Using field 'ptr2' without checking for null pointer component_ref : ptr1, ptr2, indirect_ref : ptr1, ptr2, -- cgit v1.2.3-70-g09d2