From 02ed297d531eabef1c381cfc8104d591621bc941 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 12 Jun 2015 00:39:15 +0300 Subject: Add parsing node BOOLEAN_TYPE. --- test/test1-01.txt | 30 ++++++++++++++++++++++++++++++ test/test1-02.txt | 21 +++++++++++++++++++++ test/test1-03.txt | 2 ++ test/test1.c | 3 +++ 4 files changed, 56 insertions(+) (limited to 'test') diff --git a/test/test1-01.txt b/test/test1-01.txt index 6ddfb33..1af6beb 100644 --- a/test/test1-01.txt +++ b/test/test1-01.txt @@ -702,3 +702,33 @@ function_decl fun2 test1.c 38:6 integer_cst -128 - min value integer_cst 127 - max value integer_cst 64 - parm size +function_decl funb test1.c 39:6 +- isPublic: 1 + function_type - function type + void_type - function return type + type_decl void 0:0 - type name + - isAutogenerated: 1 + tree_list - arg types + boolean_type - value + type_decl bool 0:0 - type name + - isAutogenerated: 1 + tree_list - chain + void_type - value + type_decl void 0:0 - type name + - isAutogenerated: 1 + result_decl test1.c 39:21 - function result + - isAutogenerated: 1 + void_type - result type + type_decl void 0:0 - type name + - isAutogenerated: 1 + parm_decl bool1 test1.c 39:16 - argument + integer_type - decl type + - precisionBits: 32 + - signed + type_decl int 0:0 - type name + - isAutogenerated: 1 + integer_cst 32 - type size + integer_cst -2147483648 - min value + integer_cst 2147483647 - max value + integer_cst 8 - parm size + statement_list - code diff --git a/test/test1-02.txt b/test/test1-02.txt index 533c13b..43ebba9 100644 --- a/test/test1-02.txt +++ b/test/test1-02.txt @@ -485,3 +485,24 @@ 7 integer_cst 7 integer_cst 5 integer_cst +0 function_decl test1.c +1 function_type +2 void_type +3 type_decl +2 tree_list +3 boolean_type +4 type_decl +3 tree_list +4 void_type +5 type_decl +1 result_decl test1.c +2 void_type +3 type_decl +1 parm_decl test1.c +2 integer_type +3 type_decl +3 integer_cst +3 integer_cst +3 integer_cst +2 integer_cst +1 statement_list diff --git a/test/test1-03.txt b/test/test1-03.txt index ced6511..91d0ade 100644 --- a/test/test1-03.txt +++ b/test/test1-03.txt @@ -8,3 +8,5 @@ Allocations before cleanup: 168 Allocations after cleanup: 0 Allocations before cleanup: 50 Allocations after cleanup: 0 +Allocations before cleanup: 21 +Allocations after cleanup: 0 diff --git a/test/test1.c b/test/test1.c index ac55d19..8a36fe1 100644 --- a/test/test1.c +++ b/test/test1.c @@ -36,3 +36,6 @@ int fun1(const int x,int*** y) else return MAX123; } long fun2(const char* zz) { return (long)zz; } +void funb(bool bool1) +{ +} -- cgit v1.2.3-70-g09d2