summaryrefslogtreecommitdiff
path: root/test/test39-03.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/test39-03.txt')
-rw-r--r--test/test39-03.txt259
1 files changed, 258 insertions, 1 deletions
diff --git a/test/test39-03.txt b/test/test39-03.txt
index 6f4e490..1f0e4c1 100644
--- a/test/test39-03.txt
+++ b/test/test39-03.txt
@@ -1128,6 +1128,9 @@ integer_type : ptr1,
integer_type : ptr1,
type_decl Data1: ptr1,
integer_cst 1: ptr1,
+test39.cpp:96:15: warning: Using field 'ptr1' without checking for null pointer
+ ptr1->ptrval = reinterpret_cast<Data1*>(1);
+ ^
cleanup_point_expr : ptr1,
expr_stmt : ptr1,
call_expr : ptr1,
@@ -1275,6 +1278,9 @@ integer_type : ptr1,
integer_type : ptr1,
type_decl Data1: ptr1,
integer_cst 0: ptr1,
+test39.cpp:119:15: warning: Using field 'ptr1' without checking for null pointer
+ ptr1->ptrval = 0;
+ ^
cleanup_point_expr : ptr1, ptr1->ptrval,
expr_stmt : ptr1, ptr1->ptrval,
call_expr : ptr1, ptr1->ptrval,
@@ -2102,7 +2108,7 @@ cleanup_point_expr : ptr1,
expr_stmt : ptr1,
convert_expr : ptr1,
modify_expr : ptr1,
-test39.cpp: In member function 'void Object1::func6(Data1*) const':
+test39.cpp: In member function 'int Object1::func6(Data1*) const':
test39.cpp:228:27: warning: Using variable 'ptr1' without checking for null pointer
arr[1] = ptr1->val;
^
@@ -2198,6 +2204,49 @@ expr_stmt : ptr1,
call_expr : ptr1,
addr_expr : ptr1,
function_decl paranuckerInternalTest: ptr1,
+return_expr : ptr1,
+init_expr : ptr1,
+test39.cpp:238:22: warning: Using field 'ptr1' without checking for null pointer
+ return ptr1->val;
+ ^
+result_decl : ptr1,
+integer_type : ptr1,
+type_decl int: ptr1,
+integer_cst 32: ptr1,
+integer_cst -2147483648: ptr1,
+integer_cst 2147483647: ptr1,
+integer_cst 32: ptr1,
+component_ref : ptr1,
+indirect_ref : ptr1,
+parm_decl ptr1: ptr1,
+pointer_type : ptr1,
+record_type : ptr1,
+type_decl Data1: ptr1,
+field_decl val: ptr1,
+integer_cst 32: ptr1,
+integer_type : ptr1,
+type_decl int: ptr1,
+integer_cst 32: ptr1,
+integer_cst -2147483648: ptr1,
+integer_cst 2147483647: ptr1,
+field_decl ptrval: ptr1,
+integer_cst 64: ptr1,
+pointer_type : ptr1,
+record_type : ptr1,
+field_decl arr: ptr1,
+integer_cst 96: ptr1,
+array_type : ptr1,
+integer_type : ptr1,
+integer_type : ptr1,
+type_decl Data1: ptr1,
+integer_cst 64: ptr1,
+field_decl val: ptr1,
+integer_cst 32: ptr1,
+integer_type : ptr1,
+type_decl int: ptr1,
+integer_cst 32: ptr1,
+integer_cst -2147483648: ptr1,
+integer_cst 2147483647: ptr1,
var_decl arr: ptr1,
integer_cst 320: ptr1,
array_type : ptr1,
@@ -2223,3 +2272,211 @@ integer_type : ptr1,
integer_cst 64: ptr1,
integer_cst 0: ptr1,
integer_cst 9: ptr1,
+function_decl func7:
+statement_list : ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+if_stmt : ptr1, ptr2,
+eq_expr : ptr1, ptr2,
+test39.cpp: In member function 'void Object1::func7(Data1*, Data1*) const':
+test39.cpp:252:23: warning: Using field 'ptr1' without checking for null pointer
+ if (ptr1->val == ptr2->val)
+ ^
+test39.cpp:252:23: warning: Using field 'ptr2' without checking for null pointer
+component_ref : ptr1, ptr2,
+indirect_ref : ptr1, ptr2,
+parm_decl ptr1: ptr1, ptr2,
+pointer_type : ptr1, ptr2,
+record_type : ptr1, ptr2,
+type_decl Data1: ptr1, ptr2,
+field_decl val: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_type : ptr1, ptr2,
+type_decl int: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_cst -2147483648: ptr1, ptr2,
+integer_cst 2147483647: ptr1, ptr2,
+field_decl ptrval: ptr1, ptr2,
+integer_cst 64: ptr1, ptr2,
+pointer_type : ptr1, ptr2,
+record_type : ptr1, ptr2,
+field_decl arr: ptr1, ptr2,
+integer_cst 96: ptr1, ptr2,
+array_type : ptr1, ptr2,
+integer_type : ptr1, ptr2,
+integer_type : ptr1, ptr2,
+type_decl Data1: ptr1, ptr2,
+integer_cst 64: ptr1, ptr2,
+field_decl val: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_type : ptr1, ptr2,
+type_decl int: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_cst -2147483648: ptr1, ptr2,
+integer_cst 2147483647: ptr1, ptr2,
+component_ref : ptr1, ptr2,
+indirect_ref : ptr1, ptr2,
+parm_decl ptr2: ptr1, ptr2,
+pointer_type : ptr1, ptr2,
+record_type : ptr1, ptr2,
+type_decl Data1: ptr1, ptr2,
+field_decl val: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_type : ptr1, ptr2,
+type_decl int: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_cst -2147483648: ptr1, ptr2,
+integer_cst 2147483647: ptr1, ptr2,
+field_decl ptrval: ptr1, ptr2,
+integer_cst 64: ptr1, ptr2,
+pointer_type : ptr1, ptr2,
+record_type : ptr1, ptr2,
+field_decl arr: ptr1, ptr2,
+integer_cst 96: ptr1, ptr2,
+array_type : ptr1, ptr2,
+integer_type : ptr1, ptr2,
+integer_type : ptr1, ptr2,
+type_decl Data1: ptr1, ptr2,
+integer_cst 64: ptr1, ptr2,
+field_decl val: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_type : ptr1, ptr2,
+type_decl int: ptr1, ptr2,
+integer_cst 32: ptr1, ptr2,
+integer_cst -2147483648: ptr1, ptr2,
+integer_cst 2147483647: ptr1, ptr2,
+statement_list : ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+return_expr : ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,
+cleanup_point_expr : ptr1, ptr2,
+expr_stmt : ptr1, ptr2,
+call_expr : ptr1, ptr2,
+addr_expr : ptr1, ptr2,
+function_decl paranuckerInternalTest: ptr1, ptr2,