From 2abca5bd038805c23d8a84b73cbe1b9410442841 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 8 Aug 2015 16:47:22 +0300 Subject: Update test 43. --- test/test43-01.txt | 553 +++++++++++++++++++++++++++++++++++------------------ test/test43-02.txt | 3 + test/test43-03.txt | 78 +++++++- test/test43-04.txt | 2 +- test/test43-05.txt | 2 +- test/test43.cpp | 6 + 6 files changed, 459 insertions(+), 185 deletions(-) diff --git a/test/test43-01.txt b/test/test43-01.txt index dd8852d..1c952fc 100644 --- a/test/test43-01.txt +++ b/test/test43-01.txt @@ -1,4 +1,193 @@ -function_decl getData3 test43.cpp 9:12 2147483647 +function_decl Data2 test43.cpp 8:5 2147483647 +- isPublic: 1 + method_type 2147483646 - function type + void_type 2147483645 - method return type + type_decl void 0:0 2147483644 - type name + - isAutogenerated: 1 + record_type 2147483645 - method base type + type_decl Data2 test43.cpp 6:8 2147483644 - type name + - isAutogenerated: 1 + tree_list 2147483645 - arg types + pointer_type 2147483644 - value + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + tree_list 2147483644 - chain + void_type 2147483643 - value + type_decl void 0:0 2147483642 - type name + - isAutogenerated: 1 + result_decl test43.cpp 8:13 2147483646 - function result + - isAutogenerated: 1 + void_type 2147483645 - result type + type_decl void 0:0 2147483644 - type name + - isAutogenerated: 1 + parm_decl this test43.cpp 8:11 2147483646 - argument + - isAutogenerated: 1 + pointer_type 2147483645 - decl type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + integer_cst 64 2147483645 - parm size + bind_expr test43.cpp 11:5 2147483646 - code + cleanup_point_expr test43.cpp 9:20 2147483645 - operand + expr_stmt test43.cpp 9:20 2147483644 - operand + convert_expr 2147483643 - expresssion + init_expr 2147483642 - operand + component_ref test43.cpp 9:20 2147483641 - operand + indirect_ref 2147483640 - object + nop_expr 2147483639 - ref + parm_decl this test43.cpp 8:11 2147483638 - operand + - isAutogenerated: 1 + pointer_type 2147483637 - decl type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + integer_cst 64 2147483637 - parm size + field_decl val test43.cpp 12:9 2147483640 - field + - signed + integer_cst 32 2147483639 - decl size + integer_type 5 - field type + - precisionBits: 32 + - signed + type_decl int 0:0 4 - type name + - isAutogenerated: 1 + integer_cst 32 4 - type size + integer_cst -2147483648 4 - min value + integer_cst 2147483647 4 - max value + component_ref test43.cpp 9:17 2147483641 - operand + indirect_ref 2147483640 - object + var_decl d1 test43.cpp 4:8 2147483639 - ref + - isUsed: 1 + tree_list 2147483638 - attribute + identifier_node nonnullpointer 2147483637 - purpose + integer_cst 64 2147483638 - decl size + pointer_type 2147483638 - var type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + field_decl val test43.cpp 12:9 2147483640 - field + - signed + integer_cst 32 2147483639 - decl size + integer_type 5 - field type + - precisionBits: 32 + - signed + type_decl int 0:0 4 - type name + - isAutogenerated: 1 + integer_cst 32 4 - type size + integer_cst -2147483648 4 - min value + integer_cst 2147483647 4 - max value + block 2147483645 - operand +function_decl __base_ctor test43.cpp 8:5 2147483647 +- isPublic: 1 + method_type 2147483646 - function type + void_type 2147483645 - method return type + type_decl void 0:0 2147483644 - type name + - isAutogenerated: 1 + record_type 2147483645 - method base type + type_decl Data2 test43.cpp 6:8 2147483644 - type name + - isAutogenerated: 1 + tree_list 2147483645 - arg types + pointer_type 2147483644 - value + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + tree_list 2147483644 - chain + void_type 2147483643 - value + type_decl void 0:0 2147483642 - type name + - isAutogenerated: 1 + result_decl test43.cpp 11:5 2147483646 - function result + - isAutogenerated: 1 + void_type 2147483645 - result type + type_decl void 0:0 2147483644 - type name + - isAutogenerated: 1 + parm_decl this test43.cpp 8:11 2147483646 - argument + - isAutogenerated: 1 + pointer_type 2147483645 - decl type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + integer_cst 64 2147483645 - parm size + bind_expr test43.cpp 11:5 2147483646 - code + cleanup_point_expr test43.cpp 9:20 2147483645 - operand + expr_stmt test43.cpp 9:20 2147483644 - operand + convert_expr 2147483643 - expresssion + init_expr 2147483642 - operand + component_ref test43.cpp 9:20 2147483641 - operand + indirect_ref 2147483640 - object + nop_expr 2147483639 - ref + parm_decl this test43.cpp 8:11 2147483638 - operand + - isAutogenerated: 1 + pointer_type 2147483637 - decl type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + integer_cst 64 2147483637 - parm size + field_decl val test43.cpp 12:9 2147483640 - field + - signed + integer_cst 32 2147483639 - decl size + integer_type 5 - field type + - precisionBits: 32 + - signed + type_decl int 0:0 4 - type name + - isAutogenerated: 1 + integer_cst 32 4 - type size + integer_cst -2147483648 4 - min value + integer_cst 2147483647 4 - max value + component_ref test43.cpp 9:17 2147483641 - operand + indirect_ref 2147483640 - object + var_decl d1 test43.cpp 4:8 2147483639 - ref + - isUsed: 1 + tree_list 2147483638 - attribute + identifier_node nonnullpointer 2147483637 - purpose + integer_cst 64 2147483638 - decl size + pointer_type 2147483638 - var type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + field_decl val test43.cpp 12:9 2147483640 - field + - signed + integer_cst 32 2147483639 - decl size + integer_type 5 - field type + - precisionBits: 32 + - signed + type_decl int 0:0 4 - type name + - isAutogenerated: 1 + integer_cst 32 4 - type size + integer_cst -2147483648 4 - min value + integer_cst 2147483647 4 - max value + block 2147483645 - operand +function_decl __comp_ctor test43.cpp 8:5 2147483647 +- isPublic: 1 + method_type 2147483646 - function type + void_type 2147483645 - method return type + type_decl void 0:0 2147483644 - type name + - isAutogenerated: 1 + record_type 2147483645 - method base type + type_decl Data2 test43.cpp 6:8 2147483644 - type name + - isAutogenerated: 1 + tree_list 2147483645 - arg types + pointer_type 2147483644 - value + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + tree_list 2147483644 - chain + void_type 2147483643 - value + type_decl void 0:0 2147483642 - type name + - isAutogenerated: 1 + result_decl test43.cpp 11:5 2147483646 - function result + - isAutogenerated: 1 + void_type 2147483645 - result type + type_decl void 0:0 2147483644 - type name + - isAutogenerated: 1 + parm_decl this test43.cpp 8:11 2147483646 - argument + - isAutogenerated: 1 + pointer_type 2147483645 - decl type + record_type 3 - nested type + type_decl Data2 test43.cpp 6:8 2 - type name + - isAutogenerated: 1 + integer_cst 64 2147483645 - parm size + statement_list 2147483646 - code +function_decl getData3 test43.cpp 15:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type @@ -6,18 +195,18 @@ function_decl getData3 test43.cpp 9:12 2147483647 type_decl Data1 test43.cpp 1:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Data2 test43.cpp 4:8 2147483644 - type name + type_decl Data2 test43.cpp 6:8 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Data2 test43.cpp 4:8 2 - type name + type_decl Data2 test43.cpp 6:8 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain void_type 2147483643 - value type_decl void 0:0 2147483642 - type name - isAutogenerated: 1 - result_decl test43.cpp 10:5 2147483646 - function result + result_decl test43.cpp 16:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type @@ -25,116 +214,116 @@ function_decl getData3 test43.cpp 9:12 2147483647 - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 9:21 2147483646 - argument + parm_decl this test43.cpp 15:21 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data2 test43.cpp 4:8 2 - type name + type_decl Data2 test43.cpp 6:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 11:16 2147483646 - code + return_expr test43.cpp 17:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 10:5 2147483644 - operand + result_decl test43.cpp 16:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type type_decl Data1 test43.cpp 1:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size - component_ref test43.cpp 11:16 2147483644 - operand + component_ref test43.cpp 17:16 2147483644 - operand indirect_ref 2147483643 - object nop_expr 2147483642 - ref - isUsed: 1 - parm_decl this test43.cpp 9:21 2147483641 - operand + parm_decl this test43.cpp 15:21 2147483641 - operand - isAutogenerated: 1 pointer_type 2147483640 - decl type record_type 3 - nested type - type_decl Data2 test43.cpp 4:8 2 - type name + type_decl Data2 test43.cpp 6:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483640 - parm size - field_decl ptrval test43.cpp 7:12 2147483643 - field + field_decl ptrval test43.cpp 13:12 2147483643 - field - unsigned integer_cst 64 2147483642 - decl size pointer_type 5 - field type record_type 3 - nested type type_decl Data1 test43.cpp 1:8 2 - type name - isAutogenerated: 1 -function_decl getData2 test43.cpp 23:12 2147483647 +function_decl getData2 test43.cpp 29:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Data1 test43.cpp 15:8 2147483644 - type name + type_decl Data1 test43.cpp 21:8 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain void_type 2147483643 - value type_decl void 0:0 2147483642 - type name - isAutogenerated: 1 - result_decl test43.cpp 24:5 2147483646 - function result + result_decl test43.cpp 30:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 23:21 2147483646 - argument + parm_decl this test43.cpp 29:21 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 25:16 2147483646 - code + return_expr test43.cpp 31:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 24:5 2147483644 - operand + result_decl test43.cpp 30:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size - component_ref test43.cpp 25:16 2147483644 - operand + component_ref test43.cpp 31:16 2147483644 - operand indirect_ref 2147483643 - object nop_expr 2147483642 - ref - isUsed: 1 - parm_decl this test43.cpp 23:21 2147483641 - operand + parm_decl this test43.cpp 29:21 2147483641 - operand - isAutogenerated: 1 pointer_type 2147483640 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483640 - parm size - field_decl ptrval test43.cpp 18:12 2147483643 - field + field_decl ptrval test43.cpp 24:12 2147483643 - field - unsigned integer_cst 64 2147483642 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 -function_decl getData3 test43.cpp 28:20 2147483647 +function_decl getData3 test43.cpp 34:20 2147483647 - isVirtual: 1 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Data1 test43.cpp 15:8 2147483644 - type name + type_decl Data1 test43.cpp 21:8 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain reference_type 2147483643 - value @@ -150,23 +339,23 @@ function_decl getData3 test43.cpp 28:20 2147483647 void_type 2147483642 - value type_decl void 0:0 2147483641 - type name - isAutogenerated: 1 - result_decl test43.cpp 29:5 2147483646 - function result + result_decl test43.cpp 35:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 28:35 2147483646 - argument + parm_decl this test43.cpp 34:35 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - isUsed: 1 - parm_decl k test43.cpp 28:34 2147483646 - argument + parm_decl k test43.cpp 34:34 2147483646 - argument reference_type 2147483645 - decl type integer_type 2147483644 - nested type - precisionBits: 32 @@ -178,22 +367,22 @@ function_decl getData3 test43.cpp 28:20 2147483647 integer_cst 2147483647 2147483643 - max value integer_cst 64 2147483645 - parm size statement_list 2147483646 - code - cleanup_point_expr test43.cpp 30:16 2147483645 - statement - expr_stmt test43.cpp 30:16 2147483644 - operand + cleanup_point_expr test43.cpp 36:16 2147483645 - statement + expr_stmt test43.cpp 36:16 2147483644 - operand convert_expr 2147483643 - expresssion modify_expr 2147483642 - operand - component_ref test43.cpp 30:9 2147483641 - operand + component_ref test43.cpp 36:9 2147483641 - operand indirect_ref 2147483640 - object nop_expr 2147483639 - ref - isUsed: 1 - parm_decl this test43.cpp 28:35 2147483638 - operand + parm_decl this test43.cpp 34:35 2147483638 - operand - isAutogenerated: 1 pointer_type 2147483637 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483637 - parm size - field_decl val test43.cpp 17:9 2147483640 - field + field_decl val test43.cpp 23:9 2147483640 - field - signed integer_cst 32 2147483639 - decl size integer_type 5 - field type @@ -206,7 +395,7 @@ function_decl getData3 test43.cpp 28:20 2147483647 integer_cst 2147483647 4 - max value indirect_ref 2147483641 - operand - isUsed: 1 - parm_decl k test43.cpp 28:34 2147483640 - ref + parm_decl k test43.cpp 34:34 2147483640 - ref reference_type 2147483639 - decl type integer_type 2147483638 - nested type - precisionBits: 32 @@ -217,348 +406,348 @@ function_decl getData3 test43.cpp 28:20 2147483647 integer_cst -2147483648 2147483637 - min value integer_cst 2147483647 2147483637 - max value integer_cst 64 2147483639 - parm size - return_expr test43.cpp 31:16 2147483645 - statement + return_expr test43.cpp 37:16 2147483645 - statement init_expr 2147483644 - operand - result_decl test43.cpp 29:5 2147483643 - operand + result_decl test43.cpp 35:5 2147483643 - operand - isAutogenerated: 1 pointer_type 2147483642 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483642 - decl size - component_ref test43.cpp 31:16 2147483643 - operand + component_ref test43.cpp 37:16 2147483643 - operand indirect_ref 2147483642 - object nop_expr 2147483641 - ref - isUsed: 1 - parm_decl this test43.cpp 28:35 2147483640 - operand + parm_decl this test43.cpp 34:35 2147483640 - operand - isAutogenerated: 1 pointer_type 2147483639 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483639 - parm size - field_decl ptrval test43.cpp 18:12 2147483642 - field + field_decl ptrval test43.cpp 24:12 2147483642 - field - unsigned integer_cst 64 2147483641 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 -function_decl getData4 test43.cpp 33:19 2147483647 +function_decl getData4 test43.cpp 39:19 2147483647 - isPublic: 1 function_type 2147483646 - function type pointer_type 2147483645 - function return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types void_type 2147483644 - value type_decl void 0:0 2147483643 - type name - isAutogenerated: 1 - result_decl test43.cpp 34:5 2147483646 - function result + result_decl test43.cpp 40:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - return_expr test43.cpp 35:16 2147483646 - code + return_expr test43.cpp 41:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 34:5 2147483644 - operand + result_decl test43.cpp 40:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size integer_cst 0 2147483644 - operand -function_decl getData5 test43.cpp 37:12 2147483647 +function_decl getData5 test43.cpp 43:12 2147483647 - isPublic: 1 method_type 2147483646 - function type tree_list 2147483645 - attribute identifier_node returns_nonnull 2147483644 - purpose pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data2 test43.cpp 4:8 2 - type name + type_decl Data2 test43.cpp 6:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Data1 test43.cpp 15:8 2147483644 - type name + type_decl Data1 test43.cpp 21:8 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain void_type 2147483643 - value type_decl void 0:0 2147483642 - type name - isAutogenerated: 1 - result_decl test43.cpp 38:5 2147483646 - function result + result_decl test43.cpp 44:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data2 test43.cpp 4:8 2 - type name + type_decl Data2 test43.cpp 6:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 37:54 2147483646 - argument + parm_decl this test43.cpp 43:54 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 39:17 2147483646 - code + return_expr test43.cpp 45:17 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 38:5 2147483644 - operand + result_decl test43.cpp 44:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data2 test43.cpp 4:8 2 - type name + type_decl Data2 test43.cpp 6:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size addr_expr 2147483644 - operand - component_ref test43.cpp 39:17 2147483643 - operand + component_ref test43.cpp 45:17 2147483643 - operand indirect_ref 2147483642 - object nop_expr 2147483641 - ref - isUsed: 1 - parm_decl this test43.cpp 37:54 2147483640 - operand + parm_decl this test43.cpp 43:54 2147483640 - operand - isAutogenerated: 1 pointer_type 2147483639 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483639 - parm size - field_decl perm test43.cpp 19:11 2147483642 - field + field_decl perm test43.cpp 25:11 2147483642 - field - signed integer_cst 256 2147483641 - decl size record_type 5 - field type - type_decl Data2 test43.cpp 4:8 4 - type name + type_decl Data2 test43.cpp 6:8 4 - type name - isAutogenerated: 1 -function_decl getData6 test43.cpp 41:20 2147483647 +function_decl getData6 test43.cpp 47:20 2147483647 - isVirtual: 1 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Data1 test43.cpp 15:8 2147483644 - type name + type_decl Data1 test43.cpp 21:8 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain void_type 2147483643 - value type_decl void 0:0 2147483642 - type name - isAutogenerated: 1 - result_decl test43.cpp 42:5 2147483646 - function result + result_decl test43.cpp 48:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - parm_decl this test43.cpp 41:29 2147483646 - argument + parm_decl this test43.cpp 47:29 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 43:16 2147483646 - code + return_expr test43.cpp 49:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 42:5 2147483644 - operand + result_decl test43.cpp 48:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size integer_cst 0 2147483644 - operand -function_decl getData1 test43.cpp 60:12 2147483647 +function_decl getData1 test43.cpp 66:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Object1 test43.cpp 54:7 2147483644 - type name + type_decl Object1 test43.cpp 60:7 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain void_type 2147483643 - value type_decl void 0:0 2147483642 - type name - isAutogenerated: 1 - result_decl test43.cpp 61:5 2147483646 - function result + result_decl test43.cpp 67:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 60:21 2147483646 - argument + parm_decl this test43.cpp 66:21 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 62:16 2147483646 - code + return_expr test43.cpp 68:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 61:5 2147483644 - operand + result_decl test43.cpp 67:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size - component_ref test43.cpp 62:16 2147483644 - operand + component_ref test43.cpp 68:16 2147483644 - operand indirect_ref 2147483643 - object nop_expr 2147483642 - ref - isUsed: 1 - parm_decl this test43.cpp 60:21 2147483641 - operand + parm_decl this test43.cpp 66:21 2147483641 - operand - isAutogenerated: 1 pointer_type 2147483640 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483640 - parm size - field_decl tmp2 test43.cpp 57:12 2147483643 - field + field_decl tmp2 test43.cpp 63:12 2147483643 - field - unsigned integer_cst 64 2147483642 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 -function_decl getData2 test43.cpp 65:12 2147483647 +function_decl getData2 test43.cpp 71:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Object1 test43.cpp 54:7 2147483644 - type name + type_decl Object1 test43.cpp 60:7 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain void_type 2147483643 - value type_decl void 0:0 2147483642 - type name - isAutogenerated: 1 - result_decl test43.cpp 66:5 2147483646 - function result + result_decl test43.cpp 72:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 65:21 2147483646 - argument + parm_decl this test43.cpp 71:21 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 67:16 2147483646 - code + return_expr test43.cpp 73:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 66:5 2147483644 - operand + result_decl test43.cpp 72:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size - component_ref test43.cpp 67:16 2147483644 - operand + component_ref test43.cpp 73:16 2147483644 - operand indirect_ref 2147483643 - object nop_expr 2147483642 - ref - isUsed: 1 - parm_decl this test43.cpp 65:21 2147483641 - operand + parm_decl this test43.cpp 71:21 2147483641 - operand - isAutogenerated: 1 pointer_type 2147483640 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483640 - parm size - field_decl tmp2 test43.cpp 57:12 2147483643 - field + field_decl tmp2 test43.cpp 63:12 2147483643 - field - unsigned integer_cst 64 2147483642 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 -function_decl func1 test43.cpp 70:12 2147483647 +function_decl func1 test43.cpp 76:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Object1 test43.cpp 54:7 2147483644 - type name + type_decl Object1 test43.cpp 60:7 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain pointer_type 2147483643 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483643 - chain void_type 2147483642 - value type_decl void 0:0 2147483641 - type name - isAutogenerated: 1 - result_decl test43.cpp 71:5 2147483646 - function result + result_decl test43.cpp 77:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 70:31 2147483646 - argument + parm_decl this test43.cpp 76:31 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - parm_decl ptr1 test43.cpp 70:25 2147483646 - argument + parm_decl ptr1 test43.cpp 76:25 2147483646 - argument pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 72:27 2147483646 - code + return_expr test43.cpp 78:27 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 71:5 2147483644 - operand + result_decl test43.cpp 77:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size nop_expr 2147483644 - operand cond_expr 2147483643 - operand ne_expr 2147483642 - operand - var_decl k test43.cpp 47:5 2147483641 - operand + var_decl k test43.cpp 53:5 2147483641 - operand - isUsed: 1 integer_cst 32 2147483640 - decl size integer_type 2147483640 - var type @@ -570,187 +759,187 @@ function_decl func1 test43.cpp 70:12 2147483647 integer_cst -2147483648 2147483639 - min value integer_cst 2147483647 2147483639 - max value integer_cst 0 2147483641 - operand - component_ref test43.cpp 72:20 2147483642 - operand + component_ref test43.cpp 78:20 2147483642 - operand indirect_ref 2147483641 - object nop_expr 2147483640 - ref - isUsed: 1 - parm_decl this test43.cpp 70:31 2147483639 - operand + parm_decl this test43.cpp 76:31 2147483639 - operand - isAutogenerated: 1 pointer_type 2147483638 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483638 - parm size - field_decl tmp1 test43.cpp 56:12 2147483641 - field + field_decl tmp1 test43.cpp 62:12 2147483641 - field - unsigned integer_cst 64 2147483640 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 - component_ref test43.cpp 72:27 2147483642 - operand + component_ref test43.cpp 78:27 2147483642 - operand indirect_ref 2147483641 - object nop_expr 2147483640 - ref - isUsed: 1 - parm_decl this test43.cpp 70:31 2147483639 - operand + parm_decl this test43.cpp 76:31 2147483639 - operand - isAutogenerated: 1 pointer_type 2147483638 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483638 - parm size - field_decl tmp2 test43.cpp 57:12 2147483641 - field + field_decl tmp2 test43.cpp 63:12 2147483641 - field - unsigned integer_cst 64 2147483640 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 -function_decl func2 test43.cpp 75:12 2147483647 +function_decl func2 test43.cpp 81:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Object1 test43.cpp 54:7 2147483644 - type name + type_decl Object1 test43.cpp 60:7 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain pointer_type 2147483643 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483643 - chain void_type 2147483642 - value type_decl void 0:0 2147483641 - type name - isAutogenerated: 1 - result_decl test43.cpp 76:5 2147483646 - function result + result_decl test43.cpp 82:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 75:31 2147483646 - argument + parm_decl this test43.cpp 81:31 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - parm_decl ptr1 test43.cpp 75:25 2147483646 - argument + parm_decl ptr1 test43.cpp 81:25 2147483646 - argument pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 77:16 2147483646 - code + return_expr test43.cpp 83:16 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 76:5 2147483644 - operand + result_decl test43.cpp 82:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size nop_expr 2147483644 - operand - component_ref test43.cpp 77:16 2147483643 - operand + component_ref test43.cpp 83:16 2147483643 - operand indirect_ref 2147483642 - object nop_expr 2147483641 - ref - isUsed: 1 - parm_decl this test43.cpp 75:31 2147483640 - operand + parm_decl this test43.cpp 81:31 2147483640 - operand - isAutogenerated: 1 pointer_type 2147483639 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483639 - parm size - field_decl tmp1 test43.cpp 56:12 2147483642 - field + field_decl tmp1 test43.cpp 62:12 2147483642 - field - unsigned integer_cst 64 2147483641 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 -function_decl func3 test43.cpp 80:12 2147483647 +function_decl func3 test43.cpp 86:12 2147483647 - isPublic: 1 method_type 2147483646 - function type pointer_type 2147483645 - method return type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 record_type 2147483645 - method base type - type_decl Object1 test43.cpp 54:7 2147483644 - type name + type_decl Object1 test43.cpp 60:7 2147483644 - type name - isAutogenerated: 1 tree_list 2147483645 - arg types pointer_type 2147483644 - value record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 tree_list 2147483644 - chain pointer_type 2147483643 - value record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 tree_list 2147483643 - chain void_type 2147483642 - value type_decl void 0:0 2147483641 - type name - isAutogenerated: 1 - result_decl test43.cpp 81:5 2147483646 - function result + result_decl test43.cpp 87:5 2147483646 - function result - isAutogenerated: 1 pointer_type 2147483645 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - decl size - isUsed: 1 - parm_decl this test43.cpp 80:31 2147483646 - argument + parm_decl this test43.cpp 86:31 2147483646 - argument - isAutogenerated: 1 pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - parm_decl ptr1 test43.cpp 80:25 2147483646 - argument + parm_decl ptr1 test43.cpp 86:25 2147483646 - argument pointer_type 2147483645 - decl type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483645 - parm size - return_expr test43.cpp 82:23 2147483646 - code + return_expr test43.cpp 88:23 2147483646 - code init_expr 2147483645 - operand - result_decl test43.cpp 81:5 2147483644 - operand + result_decl test43.cpp 87:5 2147483644 - operand - isAutogenerated: 1 pointer_type 2147483643 - result type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 64 2147483643 - decl size - pointer_plus_expr test43.cpp 82:23 2147483644 - operand + pointer_plus_expr test43.cpp 88:23 2147483644 - operand nop_expr 2147483643 - operand - component_ref test43.cpp 82:17 2147483642 - operand + component_ref test43.cpp 88:17 2147483642 - operand indirect_ref 2147483641 - object nop_expr 2147483640 - ref - isUsed: 1 - parm_decl this test43.cpp 80:31 2147483639 - operand + parm_decl this test43.cpp 86:31 2147483639 - operand - isAutogenerated: 1 pointer_type 2147483638 - decl type record_type 3 - nested type - type_decl Object1 test43.cpp 54:7 2 - type name + type_decl Object1 test43.cpp 60:7 2 - type name - isAutogenerated: 1 integer_cst 64 2147483638 - parm size - field_decl tmp1 test43.cpp 56:12 2147483641 - field + field_decl tmp1 test43.cpp 62:12 2147483641 - field - unsigned integer_cst 64 2147483640 - decl size pointer_type 5 - field type record_type 3 - nested type - type_decl Data1 test43.cpp 15:8 2 - type name + type_decl Data1 test43.cpp 21:8 2 - type name - isAutogenerated: 1 integer_cst 72 2147483643 - operand diff --git a/test/test43-02.txt b/test/test43-02.txt index b004c5a..59f03ed 100644 --- a/test/test43-02.txt +++ b/test/test43-02.txt @@ -1,3 +1,6 @@ +Data2: +__base_ctor : +__comp_ctor : getData3: getData2: getData3: diff --git a/test/test43-03.txt b/test/test43-03.txt index 749cf94..1e5d805 100644 --- a/test/test43-03.txt +++ b/test/test43-03.txt @@ -1,3 +1,79 @@ +function_decl Data2: +bind_expr : +cleanup_point_expr : +expr_stmt : +convert_expr : +init_expr : +component_ref : +indirect_ref : +parm_decl this: +pointer_type : +record_type : +type_decl Data2: +integer_cst 64: +field_decl val: +integer_cst 32: +integer_type : +type_decl int: +integer_cst 32: +integer_cst -2147483648: +integer_cst 2147483647: +component_ref : +indirect_ref : +var_decl d1: +tree_list : +identifier_node nonnullpointer: +integer_cst 64: +pointer_type : +record_type : +type_decl Data2: +field_decl val: +integer_cst 32: +integer_type : +type_decl int: +integer_cst 32: +integer_cst -2147483648: +integer_cst 2147483647: +block : +function_decl __base_ctor : +bind_expr : +cleanup_point_expr : +expr_stmt : +convert_expr : +init_expr : +component_ref : +indirect_ref : +parm_decl this: +pointer_type : +record_type : +type_decl Data2: +integer_cst 64: +field_decl val: +integer_cst 32: +integer_type : +type_decl int: +integer_cst 32: +integer_cst -2147483648: +integer_cst 2147483647: +component_ref : +indirect_ref : +var_decl d1: +tree_list : +identifier_node nonnullpointer: +integer_cst 64: +pointer_type : +record_type : +type_decl Data2: +field_decl val: +integer_cst 32: +integer_type : +type_decl int: +integer_cst 32: +integer_cst -2147483648: +integer_cst 2147483647: +block : +function_decl __comp_ctor : +statement_list : function_decl getData3: return_expr : init_expr : @@ -237,7 +313,7 @@ type_decl Data1: ptr1, integer_cst 64: ptr1, pointer_plus_expr : ptr1, test43.cpp: In member function 'Data1* Object1::func3(Data1*) const': -test43.cpp:82:23: warning: Using variable 'this->tmp1' without checking for null pointer +test43.cpp:88:23: warning: Using variable 'this->tmp1' without checking for null pointer return &tmp1[1]; ^ component_ref : ptr1, diff --git a/test/test43-04.txt b/test/test43-04.txt index 4e97063..e1eb5fe 100644 --- a/test/test43-04.txt +++ b/test/test43-04.txt @@ -1,4 +1,4 @@ test43.cpp: In member function 'Data1* Object1::func3(Data1*) const': -test43.cpp:82:23: warning: Using variable 'this->tmp1' without checking for null pointer +test43.cpp:88:23: warning: Using variable 'this->tmp1' without checking for null pointer return &tmp1[1]; ^ diff --git a/test/test43-05.txt b/test/test43-05.txt index 4e97063..e1eb5fe 100644 --- a/test/test43-05.txt +++ b/test/test43-05.txt @@ -1,4 +1,4 @@ test43.cpp: In member function 'Data1* Object1::func3(Data1*) const': -test43.cpp:82:23: warning: Using variable 'this->tmp1' without checking for null pointer +test43.cpp:88:23: warning: Using variable 'this->tmp1' without checking for null pointer return &tmp1[1]; ^ diff --git a/test/test43.cpp b/test/test43.cpp index dd44f0a..103de1c 100644 --- a/test/test43.cpp +++ b/test/test43.cpp @@ -1,8 +1,14 @@ struct Data1; struct Data2; +Data2 *d1 __attribute__((nonnullpointer)); + struct Data2 { + Data2() : + val(d1->val) + { + } int val; Data1 *ptrval; int arr[3]; -- cgit v1.2.3-60-g2f50