summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-21 00:12:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-21 00:13:34 +0300
commit0b3bd1b5975611de955e9587b5d2c8567dd19728 (patch)
tree7a66a1de23b0455af3e9bdda9ded3bed917b48cc
parent2085598b08564d5e17e58ff0763812f5f871a807 (diff)
downloadparanucker-0b3bd1b5975611de955e9587b5d2c8567dd19728.tar.gz
paranucker-0b3bd1b5975611de955e9587b5d2c8567dd19728.tar.bz2
paranucker-0b3bd1b5975611de955e9587b5d2c8567dd19728.tar.xz
paranucker-0b3bd1b5975611de955e9587b5d2c8567dd19728.zip
Update tests for support separate C and C++ plugins.
-rw-r--r--test/Makefile102
-rw-r--r--test/test01-01.txt186
-rw-r--r--test/test01-02.txt186
-rw-r--r--test/test01.cpp (renamed from test/test01.c)0
-rw-r--r--test/test02-01.txt12
-rw-r--r--test/test02.cpp (renamed from test/test02.c)0
-rw-r--r--test/test03-01.txt16
-rw-r--r--test/test03.cpp (renamed from test/test03.c)0
-rw-r--r--test/test04-01.txt36
-rw-r--r--test/test04.cpp (renamed from test/test04.c)0
-rw-r--r--test/test05-01.txt170
-rw-r--r--test/test05-03.txt34
-rw-r--r--test/test05-05.txt34
-rw-r--r--test/test05.cpp (renamed from test/test05.c)0
-rw-r--r--test/test06-01.txt246
-rw-r--r--test/test06-03.txt12
-rw-r--r--test/test06-04.txt12
-rw-r--r--test/test06.cpp (renamed from test/test06.c)0
18 files changed, 523 insertions, 523 deletions
diff --git a/test/Makefile b/test/Makefile
index 48ffb83..7e7b99e 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -19,8 +19,8 @@ CC := gcc-5
CXX := g++-5
MAKEFLAGS += --jobs=9
-PLUGIN = ../build/src/.libs/astdumper.so
-CMD = LANG=C ${CXX} -c -fplugin=${PLUGIN} -fplugin-arg-astdumper-command=${1} ${2} -o ../build/${3}.out 2>${3}
+PLUGINXX = ../build/src/.libs/cppastdumper.so
+CMDXX = LANG=C ${CXX} -c -fplugin=${PLUGINXX} -fplugin-arg-cppastdumper-command=${1} ${2} -o ../build/${3}.out 2>${3}
all: ${ALLTESTS} ${CRASHES}
tests: ${ALLTESTS}
@@ -28,123 +28,123 @@ crashes: ${CRASHES}
test01: ${TESTS01}
test01-01:
- $(call CMD,dump,test01.c,test01-01.txt)
+ $(call CMDXX,dump,test01.cpp,test01-01.txt)
test01-02:
- $(call CMD,smalldump,test01.c,test01-02.txt)
+ $(call CMDXX,smalldump,test01.cpp,test01-02.txt)
test01-03:
- $(call CMD,memoryusage,test01.c,test01-03.txt)
+ $(call CMDXX,memoryusage,test01.cpp,test01-03.txt)
test01-04:
- $(call CMD,dumpunsupported,test01.c,test01-04.txt)
+ $(call CMDXX,dumpunsupported,test01.cpp,test01-04.txt)
test02: ${TESTS02}
test02-01:
- $(call CMD,dump,test02.c,test02-01.txt)
+ $(call CMDXX,dump,test02.cpp,test02-01.txt)
test02-02:
- $(call CMD,findargs,test02.c,test02-02.txt)
+ $(call CMDXX,findargs,test02.cpp,test02-02.txt)
test03: ${TESTS03}
test03-01:
- $(call CMD,dump,test03.c,test03-01.txt)
+ $(call CMDXX,dump,test03.cpp,test03-01.txt)
test03-02:
- $(call CMD,findargs,test03.c,test03-02.txt)
+ $(call CMDXX,findargs,test03.cpp,test03-02.txt)
test04: ${TESTS04}
test04-01:
- $(call CMD,dump,test04.c,test04-01.txt)
+ $(call CMDXX,dump,test04.cpp,test04-01.txt)
test04-02:
- $(call CMD,findargs,test04.c,test04-02.txt)
+ $(call CMDXX,findargs,test04.cpp,test04-02.txt)
test04-03:
- $(call CMD,detectnullpointers,test04.c,test04-03.txt)
+ $(call CMDXX,detectnullpointers,test04.cpp,test04-03.txt)
test05: ${TESTS05}
test05-01:
- $(call CMD,dump,test05.c,test05-01.txt)
+ $(call CMDXX,dump,test05.cpp,test05-01.txt)
test05-02:
- $(call CMD,findargs,test05.c,test05-02.txt)
+ $(call CMDXX,findargs,test05.cpp,test05-02.txt)
test05-03:
- $(call CMD,detectnullpointers,test05.c,test05-03.txt)
+ $(call CMDXX,detectnullpointers,test05.cpp,test05-03.txt)
test05-04:
- $(call CMD,dumpunsupported,test05.c,test05-04.txt)
+ $(call CMDXX,dumpunsupported,test05.cpp,test05-04.txt)
test05-05:
- $(call CMD,dumpnullpointers,test05.c,test05-05.txt)
+ $(call CMDXX,dumpnullpointers,test05.cpp,test05-05.txt)
test06: ${TESTS06}
test06-01:
- $(call CMD,dump,test06.c,test06-01.txt)
+ $(call CMDXX,dump,test06.cpp,test06-01.txt)
test06-02:
- $(call CMD,dumpunsupported,test06.c,test06-02.txt)
+ $(call CMDXX,dumpunsupported,test06.cpp,test06-02.txt)
test06-03:
- $(call CMD,detectnullpointers,test06.c,test06-03.txt)
+ $(call CMDXX,detectnullpointers,test06.cpp,test06-03.txt)
test06-04:
- $(call CMD,dumpnullpointers,test06.c,test06-04.txt)
+ $(call CMDXX,dumpnullpointers,test06.cpp,test06-04.txt)
test07: ${TESTS07}
test07-01:
- $(call CMD,dump,test07.cpp,test07-01.txt)
+ $(call CMDXX,dump,test07.cpp,test07-01.txt)
test07-02:
- $(call CMD,smalldump,test07.cpp,test07-02.txt)
+ $(call CMDXX,smalldump,test07.cpp,test07-02.txt)
test07-03:
- $(call CMD,findargs,test07.cpp,test07-03.txt)
+ $(call CMDXX,findargs,test07.cpp,test07-03.txt)
test07-04:
- $(call CMD,detectnullpointers,test07.cpp,test07-04.txt)
+ $(call CMDXX,detectnullpointers,test07.cpp,test07-04.txt)
test07-05:
- $(call CMD,dumpnullpointers,test07.cpp,test07-05.txt)
+ $(call CMDXX,dumpnullpointers,test07.cpp,test07-05.txt)
test08: ${TESTS08}
test08-01:
- $(call CMD,dump,test08.cpp,test08-01.txt)
+ $(call CMDXX,dump,test08.cpp,test08-01.txt)
test08-02:
- $(call CMD,findargs,test08.cpp,test08-02.txt)
+ $(call CMDXX,findargs,test08.cpp,test08-02.txt)
test08-03:
- $(call CMD,dumpnullpointers,test08.cpp,test08-03.txt)
+ $(call CMDXX,dumpnullpointers,test08.cpp,test08-03.txt)
test08-04:
- $(call CMD,detectnullpointers,test08.cpp,test08-04.txt)
+ $(call CMDXX,detectnullpointers,test08.cpp,test08-04.txt)
test09: ${TESTS09}
test09-01:
- $(call CMD,dump,test09.cpp,test09-01.txt)
+ $(call CMDXX,dump,test09.cpp,test09-01.txt)
test09-02:
- $(call CMD,findargs,test09.cpp,test09-02.txt)
+ $(call CMDXX,findargs,test09.cpp,test09-02.txt)
test09-03:
- $(call CMD,dumpnullpointers,test09.cpp,test09-03.txt)
+ $(call CMDXX,dumpnullpointers,test09.cpp,test09-03.txt)
test09-04:
- $(call CMD,detectnullpointers,test09.cpp,test09-04.txt)
+ $(call CMDXX,detectnullpointers,test09.cpp,test09-04.txt)
test10: ${TESTS10}
test10-01:
- $(call CMD,dump,test10.cpp,test10-01.txt)
+ $(call CMDXX,dump,test10.cpp,test10-01.txt)
test10-02:
- $(call CMD,findargs,test10.cpp,test10-02.txt)
+ $(call CMDXX,findargs,test10.cpp,test10-02.txt)
test10-03:
- $(call CMD,dumpnullpointers,test10.cpp,test10-03.txt)
+ $(call CMDXX,dumpnullpointers,test10.cpp,test10-03.txt)
test10-04:
- $(call CMD,detectnullpointers,test10.cpp,test10-04.txt)
+ $(call CMDXX,detectnullpointers,test10.cpp,test10-04.txt)
test11: ${TESTS11}
test11-01:
- $(call CMD,dump,test11.cpp,test11-01.txt)
+ $(call CMDXX,dump,test11.cpp,test11-01.txt)
test11-02:
- $(call CMD,findargs,test11.cpp,test11-02.txt)
+ $(call CMDXX,findargs,test11.cpp,test11-02.txt)
test11-03:
- $(call CMD,dumpnullpointers,test11.cpp,test11-03.txt)
+ $(call CMDXX,dumpnullpointers,test11.cpp,test11-03.txt)
test11-04:
- $(call CMD,detectnullpointers,test11.cpp,test11-04.txt)
+ $(call CMDXX,detectnullpointers,test11.cpp,test11-04.txt)
test12: ${TESTS12}
test12-01:
- $(call CMD,dump,test12.cpp,test12-01.txt)
+ $(call CMDXX,dump,test12.cpp,test12-01.txt)
test12-02:
- $(call CMD,findargs,test12.cpp,test12-02.txt)
+ $(call CMDXX,findargs,test12.cpp,test12-02.txt)
test12-03:
- $(call CMD,dumpnullpointers,test12.cpp,test12-03.txt)
+ $(call CMDXX,dumpnullpointers,test12.cpp,test12-03.txt)
test12-04:
- $(call CMD,detectnullpointers,test12.cpp,test12-04.txt)
+ $(call CMDXX,detectnullpointers,test12.cpp,test12-04.txt)
crashtest01:
- $(call CMD,dump,crashtest01.h,crashtest01-01.txt)
+ $(call CMDXX,dump,crashtest01.h,crashtest01-01.txt)
crashtest02:
- $(call CMD,dump,crashtest02.h,crashtest02-01.txt)
+ $(call CMDXX,dump,crashtest02.h,crashtest02-01.txt)
crashtest03:
- $(call CMD,findargs,crashtest03.h,crashtest03-01.txt)
+ $(call CMDXX,findargs,crashtest03.h,crashtest03-01.txt)
crashtest04:
- $(call CMD,dump,crashtest04.cpp,crashtest04-01.txt)
+ $(call CMDXX,dump,crashtest04.cpp,crashtest04-01.txt)
diff --git a/test/test01-01.txt b/test/test01-01.txt
index f956c7c..f2d7618 100644
--- a/test/test01-01.txt
+++ b/test/test01-01.txt
@@ -1,4 +1,4 @@
-function_decl func3 test01.c 7:6
+function_decl func3 test01.cpp 7:6
- isPublic: 1
tree_list - attribute
identifier_node noreturn - purpose
@@ -37,13 +37,13 @@ function_decl func3 test01.c 7:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test01.c 7:32 - function result
+ result_decl test01.cpp 7:32 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl ptr test01.c 7:17 - argument
+ parm_decl ptr test01.cpp 7:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -55,7 +55,7 @@ function_decl func3 test01.c 7:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- isUsed: 1
- parm_decl ptr2 test01.c 7:28 - argument
+ parm_decl ptr2 test01.cpp 7:28 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -68,13 +68,13 @@ function_decl func3 test01.c 7:6
integer_cst 127 - max value
integer_cst 64 - parm size
statement_list - code
- cleanup_point_expr test01.c 9:14 - statement
- expr_stmt test01.c 9:14 - operand
+ cleanup_point_expr test01.cpp 9:14 - statement
+ expr_stmt test01.cpp 9:14 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl ptr test01.c 7:17 - ref
+ parm_decl ptr test01.cpp 7:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -86,13 +86,13 @@ function_decl func3 test01.c 7:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 10 - operand
- cleanup_point_expr test01.c 10:15 - statement
- expr_stmt test01.c 10:15 - operand
+ cleanup_point_expr test01.cpp 10:15 - statement
+ expr_stmt test01.cpp 10:15 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl ptr2 test01.c 7:28 - ref
+ parm_decl ptr2 test01.cpp 7:28 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -105,10 +105,10 @@ function_decl func3 test01.c 7:6
integer_cst 127 - max value
integer_cst 64 - parm size
integer_cst 20 - operand
- while_stmt test01.c 11:5 - statement
+ while_stmt test01.cpp 11:5 - statement
integer_cst 1 - condition
statement_list - body
-function_decl main test01.c 14:5
+function_decl main test01.cpp 14:5
- isPublic: 1
function_type - function type
integer_type - function return type
@@ -123,7 +123,7 @@ function_decl main test01.c 14:5
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test01.c 14:10 - function result
+ result_decl test01.cpp 14:10 - function result
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -135,8 +135,8 @@ function_decl main test01.c 14:5
integer_cst 2147483647 - max value
integer_cst 32 - decl size
statement_list - code
- bind_expr test01.c 19:10 - statement
- var_decl k test01.c 17:14 - operand
+ bind_expr test01.cpp 19:10 - statement
+ var_decl k test01.cpp 17:14 - operand
- isUsed: 1
integer_cst 8 - decl size
integer_type - var type
@@ -149,21 +149,21 @@ function_decl main test01.c 14:5
integer_cst -128 - min value
integer_cst 127 - max value
statement_list - operand
- cleanup_point_expr test01.c 16:19 - statement
- expr_stmt test01.c 16:19 - operand
+ cleanup_point_expr test01.cpp 16:19 - statement
+ expr_stmt test01.cpp 16:19 - operand
convert_expr - expresssion
- call_expr test01.c 16:6 - operand
+ call_expr test01.cpp 16:6 - operand
addr_expr - function
- function_decl fun1 test01.c 2:5 - operand
+ function_decl fun1 test01.cpp 2:5 - operand
- isExternal: 1
- isPublic: 1
integer_cst 1 - arg
integer_cst 2 - arg
- decl_expr test01.c 17:14 - statement
- var_decl k test01.c 17:14 - operand
+ decl_expr test01.cpp 17:14 - statement
+ var_decl k test01.cpp 17:14 - operand
- isUsed: 1
- decl_expr test01.c 17:17 - statement
- var_decl k2 test01.c 17:17 - operand
+ decl_expr test01.cpp 17:17 - statement
+ var_decl k2 test01.cpp 17:17 - operand
integer_cst 8 - decl size
integer_type - var type
- precisionBits: 8
@@ -174,19 +174,19 @@ function_decl main test01.c 14:5
integer_cst 8 - type size
integer_cst -128 - min value
integer_cst 127 - max value
- cleanup_point_expr test01.c 18:21 - statement
- expr_stmt test01.c 18:21 - operand
- call_expr test01.c 18:14 - expresssion
+ cleanup_point_expr test01.cpp 18:21 - statement
+ expr_stmt test01.cpp 18:21 - operand
+ call_expr test01.cpp 18:14 - expresssion
addr_expr - function
- function_decl func3 test01.c 7:6 - operand
+ function_decl func3 test01.cpp 7:6 - operand
- isPublic: 1
integer_cst 0 - arg
addr_expr - arg
- var_decl k test01.c 17:14 - operand
+ var_decl k test01.cpp 17:14 - operand
- isUsed: 1
- return_expr test01.c 19:9 - statement
+ return_expr test01.cpp 19:9 - statement
init_expr - operand
- result_decl test01.c 14:10 - operand
+ result_decl test01.cpp 14:10 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -199,12 +199,12 @@ function_decl main test01.c 14:5
integer_cst 32 - decl size
integer_cst 1 - operand
block - operand
- var_decl k test01.c 17:14 - block vars
+ var_decl k test01.cpp 17:14 - block vars
- isUsed: 1
- var_decl k2 test01.c 17:17 - block vars
- return_expr test01.c 20:1 - statement
+ var_decl k2 test01.cpp 17:17 - block vars
+ return_expr test01.cpp 20:1 - statement
init_expr - operand
- result_decl test01.c 14:10 - operand
+ result_decl test01.cpp 14:10 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -216,7 +216,7 @@ function_decl main test01.c 14:5
integer_cst 2147483647 - max value
integer_cst 32 - decl size
integer_cst 0 - operand
-function_decl fun test01.c 21:6
+function_decl fun test01.cpp 21:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -244,13 +244,13 @@ function_decl fun test01.c 21:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test01.c 21:23 - function result
+ result_decl test01.cpp 21:23 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test01.c 21:14 - argument
+ parm_decl a test01.cpp 21:14 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -261,7 +261,7 @@ function_decl fun test01.c 21:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test01.c 21:22 - argument
+ parm_decl b test01.cpp 21:22 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -271,10 +271,10 @@ function_decl fun test01.c 21:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- if_stmt test01.c 23:2 - code
- eq_expr test01.c 23:7 - condition
+ if_stmt test01.cpp 23:2 - code
+ eq_expr test01.cpp 23:7 - condition
- isUsed: 1
- parm_decl a test01.c 21:14 - operand
+ parm_decl a test01.cpp 21:14 - operand
integer_type - decl type
- precisionBits: 32
- signed
@@ -285,12 +285,12 @@ function_decl fun test01.c 21:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
integer_cst 0 - operand
- cleanup_point_expr test01.c 24:12 - then
- expr_stmt test01.c 24:12 - operand
+ cleanup_point_expr test01.cpp 24:12 - then
+ expr_stmt test01.cpp 24:12 - operand
convert_expr - expresssion
modify_expr - operand
- isUsed: 1
- parm_decl a test01.c 21:14 - operand
+ parm_decl a test01.cpp 21:14 - operand
integer_type - decl type
- precisionBits: 32
- signed
@@ -300,10 +300,10 @@ function_decl fun test01.c 21:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- mult_expr test01.c 24:10 - operand
- plus_expr test01.c 24:7 - operand
+ mult_expr test01.cpp 24:10 - operand
+ plus_expr test01.cpp 24:7 - operand
- isUsed: 1
- parm_decl a test01.c 21:14 - operand
+ parm_decl a test01.cpp 21:14 - operand
integer_type - decl type
- precisionBits: 32
- signed
@@ -314,7 +314,7 @@ function_decl fun test01.c 21:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test01.c 21:22 - operand
+ parm_decl b test01.cpp 21:22 - operand
integer_type - decl type
- precisionBits: 32
- signed
@@ -324,7 +324,7 @@ function_decl fun test01.c 21:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- var_decl c test01.c 3:5 - operand
+ var_decl c test01.cpp 3:5 - operand
- isUsed: 1
integer_cst 32 - decl size
integer_cst 1 - initial
@@ -336,12 +336,12 @@ function_decl fun test01.c 21:6
integer_cst 32 - type size
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
- cleanup_point_expr test01.c 26:6 - else
- expr_stmt test01.c 26:6 - operand
+ cleanup_point_expr test01.cpp 26:6 - else
+ expr_stmt test01.cpp 26:6 - operand
convert_expr - expresssion
modify_expr - operand
- isUsed: 1
- parm_decl b test01.c 21:22 - operand
+ parm_decl b test01.cpp 21:22 - operand
integer_type - decl type
- precisionBits: 32
- signed
@@ -352,7 +352,7 @@ function_decl fun test01.c 21:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
integer_cst 1 - operand
-function_decl fun1 test01.c 29:5
+function_decl fun1 test01.cpp 29:5
- isPublic: 1
function_type - function type
integer_type - function return type
@@ -388,7 +388,7 @@ function_decl fun1 test01.c 29:5
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test01.c 29:30 - function result
+ result_decl test01.cpp 29:30 - function result
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -399,7 +399,7 @@ function_decl fun1 test01.c 29:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - decl size
- parm_decl x test01.c 29:20 - argument
+ parm_decl x test01.cpp 29:20 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -409,7 +409,7 @@ function_decl fun1 test01.c 29:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- parm_decl y test01.c 29:29 - argument
+ parm_decl y test01.cpp 29:29 - argument
pointer_type - decl type
pointer_type - nested type
pointer_type - nested type
@@ -422,8 +422,8 @@ function_decl fun1 test01.c 29:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- bind_expr test01.c 36:20 - code
- var_decl a test01.c 31:6 - operand
+ bind_expr test01.cpp 36:20 - code
+ var_decl a test01.cpp 31:6 - operand
- isUsed: 1
integer_cst 32 - decl size
integer_cst 0 - initial
@@ -436,13 +436,13 @@ function_decl fun1 test01.c 29:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- cleanup_point_expr test01.c 31:8 - statement
- decl_expr test01.c 31:8 - operand
- var_decl a test01.c 31:6 - operand
+ cleanup_point_expr test01.cpp 31:8 - statement
+ decl_expr test01.cpp 31:8 - operand
+ var_decl a test01.cpp 31:6 - operand
- isUsed: 1
- cleanup_point_expr test01.c 31:16 - statement
- decl_expr test01.c 31:16 - operand
- var_decl b test01.c 31:14 - operand
+ cleanup_point_expr test01.cpp 31:16 - statement
+ decl_expr test01.cpp 31:16 - operand
+ var_decl b test01.cpp 31:14 - operand
- isUsed: 1
integer_cst 32 - decl size
integer_cst 1 - initial
@@ -454,11 +454,11 @@ function_decl fun1 test01.c 29:5
integer_cst 32 - type size
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
- cleanup_point_expr test01.c 32:5 - statement
- expr_stmt test01.c 32:5 - operand
+ cleanup_point_expr test01.cpp 32:5 - statement
+ expr_stmt test01.cpp 32:5 - operand
convert_expr - expresssion
modify_expr - operand
- var_decl c test01.c 3:5 - operand
+ var_decl c test01.cpp 3:5 - operand
- isUsed: 1
integer_cst 32 - decl size
integer_cst 1 - initial
@@ -470,24 +470,24 @@ function_decl fun1 test01.c 29:5
integer_cst 32 - type size
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
- var_decl b test01.c 31:14 - operand
+ var_decl b test01.cpp 31:14 - operand
- isUsed: 1
- cleanup_point_expr test01.c 33:10 - statement
- expr_stmt test01.c 33:10 - operand
- call_expr test01.c 33:5 - expresssion
+ cleanup_point_expr test01.cpp 33:10 - statement
+ expr_stmt test01.cpp 33:10 - operand
+ call_expr test01.cpp 33:5 - expresssion
addr_expr - function
- function_decl fun test01.c 21:6 - operand
+ function_decl fun test01.cpp 21:6 - operand
- isPublic: 1
integer_cst 0 - arg
integer_cst 1 - arg
- if_stmt test01.c 34:2 - statement
- eq_expr test01.c 34:6 - condition
- var_decl a test01.c 31:6 - operand
+ if_stmt test01.cpp 34:2 - statement
+ eq_expr test01.cpp 34:6 - condition
+ var_decl a test01.cpp 31:6 - operand
- isUsed: 1
integer_cst 0 - operand
- return_expr test01.c 35:12 - then
+ return_expr test01.cpp 35:12 - then
init_expr - operand
- result_decl test01.c 29:30 - operand
+ result_decl test01.cpp 29:30 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -498,14 +498,14 @@ function_decl fun1 test01.c 29:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - decl size
- plus_expr test01.c 35:11 - operand
- var_decl a test01.c 31:6 - operand
+ plus_expr test01.cpp 35:11 - operand
+ var_decl a test01.cpp 31:6 - operand
- isUsed: 1
- var_decl b test01.c 31:14 - operand
+ var_decl b test01.cpp 31:14 - operand
- isUsed: 1
- return_expr test01.c 36:14 - else
+ return_expr test01.cpp 36:14 - else
init_expr - operand
- result_decl test01.c 29:30 - operand
+ result_decl test01.cpp 29:30 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -518,11 +518,11 @@ function_decl fun1 test01.c 29:5
integer_cst 32 - decl size
integer_cst 10 - operand
block - operand
- var_decl a test01.c 31:6 - block vars
+ var_decl a test01.cpp 31:6 - block vars
- isUsed: 1
- var_decl b test01.c 31:14 - block vars
+ var_decl b test01.cpp 31:14 - block vars
- isUsed: 1
-function_decl fun2 test01.c 38:6
+function_decl fun2 test01.cpp 38:6
- isPublic: 1
function_type - function type
integer_type - function return type
@@ -548,7 +548,7 @@ function_decl fun2 test01.c 38:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test01.c 38:25 - function result
+ result_decl test01.cpp 38:25 - function result
- isAutogenerated: 1
integer_type - result type
- precisionBits: 64
@@ -560,7 +560,7 @@ function_decl fun2 test01.c 38:6
integer_cst 4294967295 - max value
integer_cst 64 - decl size
- isUsed: 1
- parm_decl zz test01.c 38:23 - argument
+ parm_decl zz test01.cpp 38:23 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -572,9 +572,9 @@ function_decl fun2 test01.c 38:6
integer_cst -128 - min value
integer_cst 127 - max value
integer_cst 64 - parm size
- return_expr test01.c 38:42 - code
+ return_expr test01.cpp 38:42 - code
init_expr - operand
- result_decl test01.c 38:25 - operand
+ result_decl test01.cpp 38:25 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 64
@@ -587,7 +587,7 @@ function_decl fun2 test01.c 38:6
integer_cst 64 - decl size
convert_expr - operand
- isUsed: 1
- parm_decl zz test01.c 38:23 - operand
+ parm_decl zz test01.cpp 38:23 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -599,7 +599,7 @@ function_decl fun2 test01.c 38:6
integer_cst -128 - min value
integer_cst 127 - max value
integer_cst 64 - parm size
-function_decl funb test01.c 39:6
+function_decl funb test01.cpp 39:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -613,12 +613,12 @@ function_decl funb test01.c 39:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test01.c 39:21 - function result
+ result_decl test01.cpp 39:21 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl bool1 test01.c 39:16 - argument
+ parm_decl bool1 test01.cpp 39:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
diff --git a/test/test01-02.txt b/test/test01-02.txt
index 01a38df..2da1386 100644
--- a/test/test01-02.txt
+++ b/test/test01-02.txt
@@ -1,4 +1,4 @@
-0 function_decl test01.c
+0 function_decl test01.cpp
1 tree_list
2 identifier_node
1 function_type
@@ -27,10 +27,10 @@
4 tree_list
5 void_type
6 type_decl <built-in>
-1 result_decl test01.c
+1 result_decl test01.cpp
2 void_type
3 type_decl <built-in>
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 pointer_type
3 integer_type
4 type_decl <built-in>
@@ -38,7 +38,7 @@
4 integer_cst
4 integer_cst
2 integer_cst
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 pointer_type
3 integer_type
4 type_decl <built-in>
@@ -47,12 +47,12 @@
4 integer_cst
2 integer_cst
1 statement_list
-2 cleanup_point_expr test01.c
-3 expr_stmt test01.c
+2 cleanup_point_expr test01.cpp
+3 expr_stmt test01.cpp
4 convert_expr
5 modify_expr
6 indirect_ref
-7 parm_decl test01.c
+7 parm_decl test01.cpp
8 pointer_type
9 integer_type
10 type_decl <built-in>
@@ -61,12 +61,12 @@
10 integer_cst
8 integer_cst
6 integer_cst
-2 cleanup_point_expr test01.c
-3 expr_stmt test01.c
+2 cleanup_point_expr test01.cpp
+3 expr_stmt test01.cpp
4 convert_expr
5 modify_expr
6 indirect_ref
-7 parm_decl test01.c
+7 parm_decl test01.cpp
8 pointer_type
9 integer_type
10 type_decl <built-in>
@@ -75,10 +75,10 @@
10 integer_cst
8 integer_cst
6 integer_cst
-2 while_stmt test01.c
+2 while_stmt test01.cpp
3 integer_cst
3 statement_list
-0 function_decl test01.c
+0 function_decl test01.cpp
1 function_type
2 integer_type
3 type_decl <built-in>
@@ -88,7 +88,7 @@
2 tree_list
3 void_type
4 type_decl <built-in>
-1 result_decl test01.c
+1 result_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
@@ -96,8 +96,8 @@
3 integer_cst
2 integer_cst
1 statement_list
-2 bind_expr test01.c
-3 var_decl test01.c
+2 bind_expr test01.cpp
+3 var_decl test01.cpp
4 integer_cst
4 integer_type
5 type_decl <built-in>
@@ -105,35 +105,35 @@
5 integer_cst
5 integer_cst
3 statement_list
-4 cleanup_point_expr test01.c
-5 expr_stmt test01.c
+4 cleanup_point_expr test01.cpp
+5 expr_stmt test01.cpp
6 convert_expr
-7 call_expr test01.c
+7 call_expr test01.cpp
8 addr_expr
-9 function_decl test01.c
+9 function_decl test01.cpp
8 integer_cst
8 integer_cst
-4 decl_expr test01.c
-5 var_decl test01.c
-4 decl_expr test01.c
-5 var_decl test01.c
+4 decl_expr test01.cpp
+5 var_decl test01.cpp
+4 decl_expr test01.cpp
+5 var_decl test01.cpp
6 integer_cst
6 integer_type
7 type_decl <built-in>
7 integer_cst
7 integer_cst
7 integer_cst
-4 cleanup_point_expr test01.c
-5 expr_stmt test01.c
-6 call_expr test01.c
+4 cleanup_point_expr test01.cpp
+5 expr_stmt test01.cpp
+6 call_expr test01.cpp
7 addr_expr
-8 function_decl test01.c
+8 function_decl test01.cpp
7 integer_cst
7 addr_expr
-8 var_decl test01.c
-4 return_expr test01.c
+8 var_decl test01.cpp
+4 return_expr test01.cpp
5 init_expr
-6 result_decl test01.c
+6 result_decl test01.cpp
7 integer_type
8 type_decl <built-in>
8 integer_cst
@@ -142,11 +142,11 @@
7 integer_cst
6 integer_cst
3 block
-4 var_decl test01.c
-4 var_decl test01.c
-2 return_expr test01.c
+4 var_decl test01.cpp
+4 var_decl test01.cpp
+2 return_expr test01.cpp
3 init_expr
-4 result_decl test01.c
+4 result_decl test01.cpp
5 integer_type
6 type_decl <built-in>
6 integer_cst
@@ -154,7 +154,7 @@
6 integer_cst
5 integer_cst
4 integer_cst
-0 function_decl test01.c
+0 function_decl test01.cpp
1 function_type
2 void_type
3 type_decl <built-in>
@@ -173,26 +173,26 @@
4 tree_list
5 void_type
6 type_decl <built-in>
-1 result_decl test01.c
+1 result_decl test01.cpp
2 void_type
3 type_decl <built-in>
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
3 integer_cst
3 integer_cst
2 integer_cst
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
3 integer_cst
3 integer_cst
2 integer_cst
-1 if_stmt test01.c
-2 eq_expr test01.c
-3 parm_decl test01.c
+1 if_stmt test01.cpp
+2 eq_expr test01.cpp
+3 parm_decl test01.cpp
4 integer_type
5 type_decl <built-in>
5 integer_cst
@@ -200,34 +200,34 @@
5 integer_cst
4 integer_cst
3 integer_cst
-2 cleanup_point_expr test01.c
-3 expr_stmt test01.c
+2 cleanup_point_expr test01.cpp
+3 expr_stmt test01.cpp
4 convert_expr
5 modify_expr
-6 parm_decl test01.c
+6 parm_decl test01.cpp
7 integer_type
8 type_decl <built-in>
8 integer_cst
8 integer_cst
8 integer_cst
7 integer_cst
-6 mult_expr test01.c
-7 plus_expr test01.c
-8 parm_decl test01.c
+6 mult_expr test01.cpp
+7 plus_expr test01.cpp
+8 parm_decl test01.cpp
9 integer_type
10 type_decl <built-in>
10 integer_cst
10 integer_cst
10 integer_cst
9 integer_cst
-8 parm_decl test01.c
+8 parm_decl test01.cpp
9 integer_type
10 type_decl <built-in>
10 integer_cst
10 integer_cst
10 integer_cst
9 integer_cst
-7 var_decl test01.c
+7 var_decl test01.cpp
8 integer_cst
8 integer_cst
8 integer_type
@@ -235,11 +235,11 @@
9 integer_cst
9 integer_cst
9 integer_cst
-2 cleanup_point_expr test01.c
-3 expr_stmt test01.c
+2 cleanup_point_expr test01.cpp
+3 expr_stmt test01.cpp
4 convert_expr
5 modify_expr
-6 parm_decl test01.c
+6 parm_decl test01.cpp
7 integer_type
8 type_decl <built-in>
8 integer_cst
@@ -247,7 +247,7 @@
8 integer_cst
7 integer_cst
6 integer_cst
-0 function_decl test01.c
+0 function_decl test01.cpp
1 function_type
2 integer_type
3 type_decl <built-in>
@@ -272,21 +272,21 @@
4 tree_list
5 void_type
6 type_decl <built-in>
-1 result_decl test01.c
+1 result_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
3 integer_cst
3 integer_cst
2 integer_cst
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
3 integer_cst
3 integer_cst
2 integer_cst
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 pointer_type
3 pointer_type
4 pointer_type
@@ -296,8 +296,8 @@
6 integer_cst
6 integer_cst
2 integer_cst
-1 bind_expr test01.c
-2 var_decl test01.c
+1 bind_expr test01.cpp
+2 var_decl test01.cpp
3 integer_cst
3 integer_cst
3 integer_type
@@ -306,12 +306,12 @@
4 integer_cst
4 integer_cst
2 statement_list
-3 cleanup_point_expr test01.c
-4 decl_expr test01.c
-5 var_decl test01.c
-3 cleanup_point_expr test01.c
-4 decl_expr test01.c
-5 var_decl test01.c
+3 cleanup_point_expr test01.cpp
+4 decl_expr test01.cpp
+5 var_decl test01.cpp
+3 cleanup_point_expr test01.cpp
+4 decl_expr test01.cpp
+5 var_decl test01.cpp
6 integer_cst
6 integer_cst
6 integer_type
@@ -319,11 +319,11 @@
7 integer_cst
7 integer_cst
7 integer_cst
-3 cleanup_point_expr test01.c
-4 expr_stmt test01.c
+3 cleanup_point_expr test01.cpp
+4 expr_stmt test01.cpp
5 convert_expr
6 modify_expr
-7 var_decl test01.c
+7 var_decl test01.cpp
8 integer_cst
8 integer_cst
8 integer_type
@@ -331,33 +331,33 @@
9 integer_cst
9 integer_cst
9 integer_cst
-7 var_decl test01.c
-3 cleanup_point_expr test01.c
-4 expr_stmt test01.c
-5 call_expr test01.c
+7 var_decl test01.cpp
+3 cleanup_point_expr test01.cpp
+4 expr_stmt test01.cpp
+5 call_expr test01.cpp
6 addr_expr
-7 function_decl test01.c
+7 function_decl test01.cpp
6 integer_cst
6 integer_cst
-3 if_stmt test01.c
-4 eq_expr test01.c
-5 var_decl test01.c
+3 if_stmt test01.cpp
+4 eq_expr test01.cpp
+5 var_decl test01.cpp
5 integer_cst
-4 return_expr test01.c
+4 return_expr test01.cpp
5 init_expr
-6 result_decl test01.c
+6 result_decl test01.cpp
7 integer_type
8 type_decl <built-in>
8 integer_cst
8 integer_cst
8 integer_cst
7 integer_cst
-6 plus_expr test01.c
-7 var_decl test01.c
-7 var_decl test01.c
-4 return_expr test01.c
+6 plus_expr test01.cpp
+7 var_decl test01.cpp
+7 var_decl test01.cpp
+4 return_expr test01.cpp
5 init_expr
-6 result_decl test01.c
+6 result_decl test01.cpp
7 integer_type
8 type_decl <built-in>
8 integer_cst
@@ -366,9 +366,9 @@
7 integer_cst
6 integer_cst
2 block
-3 var_decl test01.c
-3 var_decl test01.c
-0 function_decl test01.c
+3 var_decl test01.cpp
+3 var_decl test01.cpp
+0 function_decl test01.cpp
1 function_type
2 integer_type
3 type_decl <built-in>
@@ -385,14 +385,14 @@
3 tree_list
4 void_type
5 type_decl <built-in>
-1 result_decl test01.c
+1 result_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
3 integer_cst
3 integer_cst
2 integer_cst
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 pointer_type
3 integer_type
4 type_decl <built-in>
@@ -400,9 +400,9 @@
4 integer_cst
4 integer_cst
2 integer_cst
-1 return_expr test01.c
+1 return_expr test01.cpp
2 init_expr
-3 result_decl test01.c
+3 result_decl test01.cpp
4 integer_type
5 type_decl <built-in>
5 integer_cst
@@ -410,7 +410,7 @@
5 integer_cst
4 integer_cst
3 convert_expr
-4 parm_decl test01.c
+4 parm_decl test01.cpp
5 pointer_type
6 integer_type
7 type_decl <built-in>
@@ -418,7 +418,7 @@
7 integer_cst
7 integer_cst
5 integer_cst
-0 function_decl test01.c
+0 function_decl test01.cpp
1 function_type
2 void_type
3 type_decl <built-in>
@@ -428,10 +428,10 @@
3 tree_list
4 void_type
5 type_decl <built-in>
-1 result_decl test01.c
+1 result_decl test01.cpp
2 void_type
3 type_decl <built-in>
-1 parm_decl test01.c
+1 parm_decl test01.cpp
2 integer_type
3 type_decl <built-in>
3 integer_cst
diff --git a/test/test01.c b/test/test01.cpp
index 8a36fe1..8a36fe1 100644
--- a/test/test01.c
+++ b/test/test01.cpp
diff --git a/test/test02-01.txt b/test/test02-01.txt
index c55014b..08e8f62 100644
--- a/test/test02-01.txt
+++ b/test/test02-01.txt
@@ -1,4 +1,4 @@
-function_decl main test02.c 1:5
+function_decl main test02.cpp 1:5
- isPublic: 1
function_type - function type
integer_type - function return type
@@ -13,7 +13,7 @@ function_decl main test02.c 1:5
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test02.c 1:14 - function result
+ result_decl test02.cpp 1:14 - function result
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -25,9 +25,9 @@ function_decl main test02.c 1:5
integer_cst 2147483647 - max value
integer_cst 32 - decl size
statement_list - code
- return_expr test02.c 3:12 - statement
+ return_expr test02.cpp 3:12 - statement
init_expr - operand
- result_decl test02.c 1:14 - operand
+ result_decl test02.cpp 1:14 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -39,9 +39,9 @@ function_decl main test02.c 1:5
integer_cst 2147483647 - max value
integer_cst 32 - decl size
integer_cst 123 - operand
- return_expr test02.c 4:1 - statement
+ return_expr test02.cpp 4:1 - statement
init_expr - operand
- result_decl test02.c 1:14 - operand
+ result_decl test02.cpp 1:14 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
diff --git a/test/test02.c b/test/test02.cpp
index 33f6936..33f6936 100644
--- a/test/test02.c
+++ b/test/test02.cpp
diff --git a/test/test03-01.txt b/test/test03-01.txt
index e0eeab4..79c1f73 100644
--- a/test/test03-01.txt
+++ b/test/test03-01.txt
@@ -1,4 +1,4 @@
-function_decl main test03.c 1:5
+function_decl main test03.cpp 1:5
- isPublic: 1
function_type - function type
integer_type - function return type
@@ -34,7 +34,7 @@ function_decl main test03.c 1:5
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test03.c 1:31 - function result
+ result_decl test03.cpp 1:31 - function result
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -45,7 +45,7 @@ function_decl main test03.c 1:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - decl size
- parm_decl argc test03.c 1:14 - argument
+ parm_decl argc test03.cpp 1:14 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -55,7 +55,7 @@ function_decl main test03.c 1:5
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- parm_decl argv test03.c 1:27 - argument
+ parm_decl argv test03.cpp 1:27 - argument
pointer_type - decl type
pointer_type - nested type
integer_type - nested type
@@ -69,9 +69,9 @@ function_decl main test03.c 1:5
integer_cst 127 - max value
integer_cst 64 - parm size
statement_list - code
- return_expr test03.c 3:12 - statement
+ return_expr test03.cpp 3:12 - statement
init_expr - operand
- result_decl test03.c 1:31 - operand
+ result_decl test03.cpp 1:31 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
@@ -83,9 +83,9 @@ function_decl main test03.c 1:5
integer_cst 2147483647 - max value
integer_cst 32 - decl size
integer_cst 123 - operand
- return_expr test03.c 4:1 - statement
+ return_expr test03.cpp 4:1 - statement
init_expr - operand
- result_decl test03.c 1:31 - operand
+ result_decl test03.cpp 1:31 - operand
- isAutogenerated: 1
integer_type - result type
- precisionBits: 32
diff --git a/test/test03.c b/test/test03.cpp
index 20e0636..20e0636 100644
--- a/test/test03.c
+++ b/test/test03.cpp
diff --git a/test/test04-01.txt b/test/test04-01.txt
index f9cd851..9f95d19 100644
--- a/test/test04-01.txt
+++ b/test/test04-01.txt
@@ -1,4 +1,4 @@
-function_decl func4_1 test04.c 5:6
+function_decl func4_1 test04.cpp 5:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -38,12 +38,12 @@ function_decl func4_1 test04.c 5:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test04.c 5:36 - function result
+ result_decl test04.cpp 5:36 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test04.c 5:18 - argument
+ parm_decl a test04.cpp 5:18 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -53,7 +53,7 @@ function_decl func4_1 test04.c 5:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- parm_decl b test04.c 5:26 - argument
+ parm_decl b test04.cpp 5:26 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -64,7 +64,7 @@ function_decl func4_1 test04.c 5:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test04.c 5:35 - argument
+ parm_decl c test04.cpp 5:35 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -76,8 +76,8 @@ function_decl func4_1 test04.c 5:6
integer_cst -128 - min value
integer_cst 127 - max value
integer_cst 64 - parm size
- return_expr test04.c 7:5 - code
-function_decl func4_2 test04.c 10:6
+ return_expr test04.cpp 7:5 - code
+function_decl func4_2 test04.cpp 10:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -121,12 +121,12 @@ function_decl func4_2 test04.c 10:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test04.c 10:36 - function result
+ result_decl test04.cpp 10:36 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test04.c 10:18 - argument
+ parm_decl a test04.cpp 10:18 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -136,7 +136,7 @@ function_decl func4_2 test04.c 10:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- parm_decl b test04.c 10:26 - argument
+ parm_decl b test04.cpp 10:26 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -147,7 +147,7 @@ function_decl func4_2 test04.c 10:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test04.c 10:35 - argument
+ parm_decl c test04.cpp 10:35 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -159,8 +159,8 @@ function_decl func4_2 test04.c 10:6
integer_cst -128 - min value
integer_cst 127 - max value
integer_cst 64 - parm size
- return_expr test04.c 12:5 - code
-function_decl func4_3 test04.c 15:6
+ return_expr test04.cpp 12:5 - code
+function_decl func4_3 test04.cpp 15:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -206,12 +206,12 @@ function_decl func4_3 test04.c 15:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test04.c 15:36 - function result
+ result_decl test04.cpp 15:36 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test04.c 15:18 - argument
+ parm_decl a test04.cpp 15:18 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -221,7 +221,7 @@ function_decl func4_3 test04.c 15:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- parm_decl b test04.c 15:26 - argument
+ parm_decl b test04.cpp 15:26 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -232,7 +232,7 @@ function_decl func4_3 test04.c 15:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test04.c 15:35 - argument
+ parm_decl c test04.cpp 15:35 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 8
@@ -244,4 +244,4 @@ function_decl func4_3 test04.c 15:6
integer_cst -128 - min value
integer_cst 127 - max value
integer_cst 64 - parm size
- return_expr test04.c 17:5 - code
+ return_expr test04.cpp 17:5 - code
diff --git a/test/test04.c b/test/test04.cpp
index ae4bbfe..ae4bbfe 100644
--- a/test/test04.c
+++ b/test/test04.cpp
diff --git a/test/test05-01.txt b/test/test05-01.txt
index b162715..67d9169 100644
--- a/test/test05-01.txt
+++ b/test/test05-01.txt
@@ -1,4 +1,4 @@
-function_decl func1 test05.c 10:6
+function_decl func1 test05.cpp 10:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -37,12 +37,12 @@ function_decl func1 test05.c 10:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 10:33 - function result
+ result_decl test05.cpp 10:33 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 10:16 - argument
+ parm_decl a test05.cpp 10:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -53,7 +53,7 @@ function_decl func1 test05.c 10:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test05.c 10:24 - argument
+ parm_decl b test05.cpp 10:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -64,7 +64,7 @@ function_decl func1 test05.c 10:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 10:32 - argument
+ parm_decl c test05.cpp 10:32 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -74,13 +74,13 @@ function_decl func1 test05.c 10:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- cleanup_point_expr test05.c 12:13 - code
- expr_stmt test05.c 12:13 - operand
+ cleanup_point_expr test05.cpp 12:13 - code
+ expr_stmt test05.cpp 12:13 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl b test05.c 10:24 - ref
+ parm_decl b test05.cpp 10:24 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -92,7 +92,7 @@ function_decl func1 test05.c 10:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 100 - operand
-function_decl func2 test05.c 15:6
+function_decl func2 test05.cpp 15:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -131,12 +131,12 @@ function_decl func2 test05.c 15:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 15:33 - function result
+ result_decl test05.cpp 15:33 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 15:16 - argument
+ parm_decl a test05.cpp 15:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -147,7 +147,7 @@ function_decl func2 test05.c 15:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test05.c 15:24 - argument
+ parm_decl b test05.cpp 15:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -158,7 +158,7 @@ function_decl func2 test05.c 15:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 15:32 - argument
+ parm_decl c test05.cpp 15:32 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -168,14 +168,14 @@ function_decl func2 test05.c 15:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- cleanup_point_expr test05.c 17:19 - code
- expr_stmt test05.c 17:19 - operand
+ cleanup_point_expr test05.cpp 17:19 - code
+ expr_stmt test05.cpp 17:19 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- pointer_plus_expr test05.c 17:9 - ref
+ pointer_plus_expr test05.cpp 17:9 - ref
- isUsed: 1
- parm_decl b test05.c 15:24 - operand
+ parm_decl b test05.cpp 15:24 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -188,7 +188,7 @@ function_decl func2 test05.c 15:6
integer_cst 64 - parm size
integer_cst 4 - operand
integer_cst 200 - operand
-function_decl func3 test05.c 20:6
+function_decl func3 test05.cpp 20:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -227,12 +227,12 @@ function_decl func3 test05.c 20:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 20:33 - function result
+ result_decl test05.cpp 20:33 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 20:16 - argument
+ parm_decl a test05.cpp 20:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -243,7 +243,7 @@ function_decl func3 test05.c 20:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test05.c 20:24 - argument
+ parm_decl b test05.cpp 20:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -254,7 +254,7 @@ function_decl func3 test05.c 20:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 20:32 - argument
+ parm_decl c test05.cpp 20:32 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -264,14 +264,14 @@ function_decl func3 test05.c 20:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- cleanup_point_expr test05.c 22:25 - code
- expr_stmt test05.c 22:25 - operand
+ cleanup_point_expr test05.cpp 22:25 - code
+ expr_stmt test05.cpp 22:25 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- pointer_plus_expr test05.c 22:9 - ref
+ pointer_plus_expr test05.cpp 22:9 - ref
- isUsed: 1
- parm_decl b test05.c 20:24 - operand
+ parm_decl b test05.cpp 20:24 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -284,7 +284,7 @@ function_decl func3 test05.c 20:6
integer_cst 64 - parm size
integer_cst 8 - operand
integer_cst 300 - operand
-function_decl func5 test05.c 25:6
+function_decl func5 test05.cpp 25:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -323,12 +323,12 @@ function_decl func5 test05.c 25:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 25:33 - function result
+ result_decl test05.cpp 25:33 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 25:16 - argument
+ parm_decl a test05.cpp 25:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -339,7 +339,7 @@ function_decl func5 test05.c 25:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test05.c 25:24 - argument
+ parm_decl b test05.cpp 25:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -350,7 +350,7 @@ function_decl func5 test05.c 25:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 25:32 - argument
+ parm_decl c test05.cpp 25:32 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -360,8 +360,8 @@ function_decl func5 test05.c 25:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- bind_expr test05.c 28:22 - code
- var_decl var1 test05.c 27:9 - operand
+ bind_expr test05.cpp 28:22 - code
+ var_decl var1 test05.cpp 27:9 - operand
- isUsed: 1
integer_cst 32 - decl size
integer_cst 1 - initial
@@ -374,18 +374,18 @@ function_decl func5 test05.c 25:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- cleanup_point_expr test05.c 27:16 - statement
- decl_expr test05.c 27:16 - operand
- var_decl var1 test05.c 27:9 - operand
+ cleanup_point_expr test05.cpp 27:16 - statement
+ decl_expr test05.cpp 27:16 - operand
+ var_decl var1 test05.cpp 27:9 - operand
- isUsed: 1
- cleanup_point_expr test05.c 28:22 - statement
- expr_stmt test05.c 28:22 - operand
+ cleanup_point_expr test05.cpp 28:22 - statement
+ expr_stmt test05.cpp 28:22 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- pointer_plus_expr test05.c 28:12 - ref
+ pointer_plus_expr test05.cpp 28:12 - ref
- isUsed: 1
- parm_decl b test05.c 25:24 - operand
+ parm_decl b test05.cpp 25:24 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -399,14 +399,14 @@ function_decl func5 test05.c 25:6
nop_expr - operand
mult_expr - operand
nop_expr - operand
- var_decl var1 test05.c 27:9 - operand
+ var_decl var1 test05.cpp 27:9 - operand
- isUsed: 1
integer_cst 4 - operand
integer_cst 400 - operand
block - operand
- var_decl var1 test05.c 27:9 - block vars
+ var_decl var1 test05.cpp 27:9 - block vars
- isUsed: 1
-function_decl func6 test05.c 31:6
+function_decl func6 test05.cpp 31:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -445,12 +445,12 @@ function_decl func6 test05.c 31:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 31:33 - function result
+ result_decl test05.cpp 31:33 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 31:16 - argument
+ parm_decl a test05.cpp 31:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -461,7 +461,7 @@ function_decl func6 test05.c 31:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test05.c 31:24 - argument
+ parm_decl b test05.cpp 31:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -472,7 +472,7 @@ function_decl func6 test05.c 31:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 31:32 - argument
+ parm_decl c test05.cpp 31:32 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -482,12 +482,12 @@ function_decl func6 test05.c 31:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- bind_expr test05.c 34:16 - code
- var_decl var2 test05.c 33:10 - operand
+ bind_expr test05.cpp 34:16 - code
+ var_decl var2 test05.cpp 33:10 - operand
- isUsed: 1
integer_cst 64 - decl size
- isUsed: 1
- parm_decl b test05.c 31:24 - initial
+ parm_decl b test05.cpp 31:24 - initial
pointer_type - var type
integer_type - nested type
- precisionBits: 32
@@ -498,21 +498,21 @@ function_decl func6 test05.c 31:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- decl_expr test05.c 33:17 - statement
- var_decl var2 test05.c 33:10 - operand
+ decl_expr test05.cpp 33:17 - statement
+ var_decl var2 test05.cpp 33:10 - operand
- isUsed: 1
- cleanup_point_expr test05.c 34:16 - statement
- expr_stmt test05.c 34:16 - operand
+ cleanup_point_expr test05.cpp 34:16 - statement
+ expr_stmt test05.cpp 34:16 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- var_decl var2 test05.c 33:10 - ref
+ var_decl var2 test05.cpp 33:10 - ref
- isUsed: 1
integer_cst 500 - operand
block - operand
- var_decl var2 test05.c 33:10 - block vars
+ var_decl var2 test05.cpp 33:10 - block vars
- isUsed: 1
-function_decl func7 test05.c 37:6
+function_decl func7 test05.cpp 37:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -551,12 +551,12 @@ function_decl func7 test05.c 37:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 37:33 - function result
+ result_decl test05.cpp 37:33 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 37:16 - argument
+ parm_decl a test05.cpp 37:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -567,7 +567,7 @@ function_decl func7 test05.c 37:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl b test05.c 37:24 - argument
+ parm_decl b test05.cpp 37:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -578,7 +578,7 @@ function_decl func7 test05.c 37:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 37:32 - argument
+ parm_decl c test05.cpp 37:32 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -588,13 +588,13 @@ function_decl func7 test05.c 37:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- bind_expr test05.c 40:16 - code
- var_decl var3 test05.c 39:10 - operand
+ bind_expr test05.cpp 40:16 - code
+ var_decl var3 test05.cpp 39:10 - operand
- isUsed: 1
integer_cst 64 - decl size
- pointer_plus_expr test05.c 39:20 - initial
+ pointer_plus_expr test05.cpp 39:20 - initial
- isUsed: 1
- parm_decl b test05.c 37:24 - operand
+ parm_decl b test05.cpp 37:24 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -616,21 +616,21 @@ function_decl func7 test05.c 37:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- decl_expr test05.c 39:22 - statement
- var_decl var3 test05.c 39:10 - operand
+ decl_expr test05.cpp 39:22 - statement
+ var_decl var3 test05.cpp 39:10 - operand
- isUsed: 1
- cleanup_point_expr test05.c 40:16 - statement
- expr_stmt test05.c 40:16 - operand
+ cleanup_point_expr test05.cpp 40:16 - statement
+ expr_stmt test05.cpp 40:16 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- var_decl var3 test05.c 39:10 - ref
+ var_decl var3 test05.cpp 39:10 - ref
- isUsed: 1
integer_cst 600 - operand
block - operand
- var_decl var3 test05.c 39:10 - block vars
+ var_decl var3 test05.cpp 39:10 - block vars
- isUsed: 1
-function_decl func8 test05.c 43:6
+function_decl func8 test05.cpp 43:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -669,12 +669,12 @@ function_decl func8 test05.c 43:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test05.c 43:36 - function result
+ result_decl test05.cpp 43:36 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- parm_decl a test05.c 43:16 - argument
+ parm_decl a test05.cpp 43:16 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -685,7 +685,7 @@ function_decl func8 test05.c 43:6
integer_cst 2147483647 - max value
integer_cst 32 - parm size
- isUsed: 1
- parm_decl bptr test05.c 43:24 - argument
+ parm_decl bptr test05.cpp 43:24 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -696,7 +696,7 @@ function_decl func8 test05.c 43:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- parm_decl c test05.c 43:35 - argument
+ parm_decl c test05.cpp 43:35 - argument
integer_type - decl type
- precisionBits: 32
- signed
@@ -706,13 +706,13 @@ function_decl func8 test05.c 43:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 8 - parm size
- bind_expr test05.c 46:17 - code
- var_decl var4 test05.c 45:11 - operand
+ bind_expr test05.cpp 46:17 - code
+ var_decl var4 test05.cpp 45:11 - operand
- isUsed: 1
integer_cst 64 - decl size
addr_expr - initial
- isUsed: 1
- parm_decl bptr test05.c 43:24 - operand
+ parm_decl bptr test05.cpp 43:24 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -734,18 +734,18 @@ function_decl func8 test05.c 43:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- decl_expr test05.c 45:19 - statement
- var_decl var4 test05.c 45:11 - operand
+ decl_expr test05.cpp 45:19 - statement
+ var_decl var4 test05.cpp 45:11 - operand
- isUsed: 1
- cleanup_point_expr test05.c 46:17 - statement
- expr_stmt test05.c 46:17 - operand
+ cleanup_point_expr test05.cpp 46:17 - statement
+ expr_stmt test05.cpp 46:17 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
indirect_ref - ref
- var_decl var4 test05.c 45:11 - ref
+ var_decl var4 test05.cpp 45:11 - ref
- isUsed: 1
integer_cst 700 - operand
block - operand
- var_decl var4 test05.c 45:11 - block vars
+ var_decl var4 test05.cpp 45:11 - block vars
- isUsed: 1
diff --git a/test/test05-03.txt b/test/test05-03.txt
index 56c63eb..f13f93d 100644
--- a/test/test05-03.txt
+++ b/test/test05-03.txt
@@ -1,31 +1,31 @@
-test05.c: In function 'void func1(int, int*, char)':
-test05.c:12:13: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func1(int, int*, char)':
+test05.cpp:12:13: warning: Using parameter 'b' without checking for null pointer
*b = 100;
^
-test05.c: In function 'void func2(int, int*, char)':
-test05.c:17:9: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func2(int, int*, char)':
+test05.cpp:17:9: warning: Using parameter 'b' without checking for null pointer
*(1 + b) = 200;
^
-test05.c: In function 'void func3(int, int*, char)':
-test05.c:22:9: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func3(int, int*, char)':
+test05.cpp:22:9: warning: Using parameter 'b' without checking for null pointer
*(1 + (1 + b)) = 300;
^
-test05.c: In function 'void func5(int, int*, char)':
-test05.c:28:12: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func5(int, int*, char)':
+test05.cpp:28:12: warning: Using parameter 'b' without checking for null pointer
*(var1 + b) = 400;
^
-test05.c: In function 'void func6(int, int*, char)':
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func6(int, int*, char)':
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
int *var2 = b;
^
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
-test05.c: In function 'void func7(int, int*, char)':
-test05.c:39:20: warning: Using parameter 'b' without checking for null pointer
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func7(int, int*, char)':
+test05.cpp:39:20: warning: Using parameter 'b' without checking for null pointer
int *var3 = 12 + b;
^
-test05.c: In function 'void func8(int, int*, char)':
-test05.c:45:11: warning: Using parameter 'bptr' without checking for null pointer
+test05.cpp: In function 'void func8(int, int*, char)':
+test05.cpp:45:11: warning: Using parameter 'bptr' without checking for null pointer
int **var4 = &bptr;
^
diff --git a/test/test05-05.txt b/test/test05-05.txt
index 3e8de4e..5851bd1 100644
--- a/test/test05-05.txt
+++ b/test/test05-05.txt
@@ -3,8 +3,8 @@ cleanup_point_expr : b,
expr_stmt : b,
convert_expr : b,
modify_expr : b,
-test05.c: In function 'void func1(int, int*, char)':
-test05.c:12:13: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func1(int, int*, char)':
+test05.cpp:12:13: warning: Using parameter 'b' without checking for null pointer
*b = 100;
^
indirect_ref : b,
@@ -24,8 +24,8 @@ convert_expr : b,
modify_expr : b,
indirect_ref : b,
pointer_plus_expr : b,
-test05.c: In function 'void func2(int, int*, char)':
-test05.c:17:9: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func2(int, int*, char)':
+test05.cpp:17:9: warning: Using parameter 'b' without checking for null pointer
*(1 + b) = 200;
^
parm_decl b: b,
@@ -45,8 +45,8 @@ convert_expr : b,
modify_expr : b,
indirect_ref : b,
pointer_plus_expr : b,
-test05.c: In function 'void func3(int, int*, char)':
-test05.c:22:9: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func3(int, int*, char)':
+test05.cpp:22:9: warning: Using parameter 'b' without checking for null pointer
*(1 + (1 + b)) = 300;
^
parm_decl b: b,
@@ -79,8 +79,8 @@ convert_expr : b,
modify_expr : b,
indirect_ref : b,
pointer_plus_expr : b,
-test05.c: In function 'void func5(int, int*, char)':
-test05.c:28:12: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func5(int, int*, char)':
+test05.cpp:28:12: warning: Using parameter 'b' without checking for null pointer
*(var1 + b) = 400;
^
parm_decl b: b,
@@ -102,8 +102,8 @@ var_decl var1: b,
function_decl func6:
bind_expr : b,
var_decl var2: b,
-test05.c: In function 'void func6(int, int*, char)':
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func6(int, int*, char)':
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
int *var2 = b;
^
integer_cst 64: b,
@@ -117,25 +117,25 @@ integer_cst 2147483647: b,
statement_list : b,
decl_expr : b,
var_decl var2: b,
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
cleanup_point_expr : b,
expr_stmt : b,
convert_expr : b,
modify_expr : b,
indirect_ref : b,
var_decl var2: b,
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
integer_cst 500: b,
block : b,
var_decl var2: b,
-test05.c:33:10: warning: Using parameter 'b' without checking for null pointer
+test05.cpp:33:10: warning: Using parameter 'b' without checking for null pointer
function_decl func7:
bind_expr : b,
var_decl var3: b,
integer_cst 64: b,
pointer_plus_expr : b,
-test05.c: In function 'void func7(int, int*, char)':
-test05.c:39:20: warning: Using parameter 'b' without checking for null pointer
+test05.cpp: In function 'void func7(int, int*, char)':
+test05.cpp:39:20: warning: Using parameter 'b' without checking for null pointer
int *var3 = 12 + b;
^
parm_decl b: b,
@@ -170,8 +170,8 @@ bind_expr : bptr,
var_decl var4: bptr,
integer_cst 64: bptr,
addr_expr : bptr,
-test05.c: In function 'void func8(int, int*, char)':
-test05.c:45:11: warning: Using parameter 'bptr' without checking for null pointer
+test05.cpp: In function 'void func8(int, int*, char)':
+test05.cpp:45:11: warning: Using parameter 'bptr' without checking for null pointer
int **var4 = &bptr;
^
parm_decl bptr: bptr,
diff --git a/test/test05.c b/test/test05.cpp
index 320e202..320e202 100644
--- a/test/test05.c
+++ b/test/test05.cpp
diff --git a/test/test06-01.txt b/test/test06-01.txt
index a4628f5..a7bb2d4 100644
--- a/test/test06-01.txt
+++ b/test/test06-01.txt
@@ -1,4 +1,4 @@
-function_decl func1 test06.c 10:6
+function_decl func1 test06.cpp 10:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -18,13 +18,13 @@ function_decl func1 test06.c 10:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 10:18 - function result
+ result_decl test06.cpp 10:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test06.c 10:17 - argument
+ parm_decl a test06.cpp 10:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -35,13 +35,13 @@ function_decl func1 test06.c 10:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- cleanup_point_expr test06.c 12:13 - code
- expr_stmt test06.c 12:13 - operand
+ cleanup_point_expr test06.cpp 12:13 - code
+ expr_stmt test06.cpp 12:13 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 10:17 - ref
+ parm_decl a test06.cpp 10:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -53,7 +53,7 @@ function_decl func1 test06.c 10:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 100 - operand
-function_decl func2 test06.c 15:6
+function_decl func2 test06.cpp 15:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -73,13 +73,13 @@ function_decl func2 test06.c 15:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 15:18 - function result
+ result_decl test06.cpp 15:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test06.c 15:17 - argument
+ parm_decl a test06.cpp 15:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -90,10 +90,10 @@ function_decl func2 test06.c 15:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- if_stmt test06.c 17:5 - code
- eq_expr test06.c 17:10 - condition
+ if_stmt test06.cpp 17:5 - code
+ eq_expr test06.cpp 17:10 - condition
- isUsed: 1
- parm_decl a test06.c 15:17 - operand
+ parm_decl a test06.cpp 15:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -105,14 +105,14 @@ function_decl func2 test06.c 15:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- return_expr test06.c 18:9 - then
- cleanup_point_expr test06.c 20:17 - else
- expr_stmt test06.c 20:17 - operand
+ return_expr test06.cpp 18:9 - then
+ cleanup_point_expr test06.cpp 20:17 - else
+ expr_stmt test06.cpp 20:17 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 15:17 - ref
+ parm_decl a test06.cpp 15:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -124,7 +124,7 @@ function_decl func2 test06.c 15:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 200 - operand
-function_decl func3 test06.c 23:6
+function_decl func3 test06.cpp 23:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -144,13 +144,13 @@ function_decl func3 test06.c 23:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 23:18 - function result
+ result_decl test06.cpp 23:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test06.c 23:17 - argument
+ parm_decl a test06.cpp 23:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -162,10 +162,10 @@ function_decl func3 test06.c 23:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
statement_list - code
- if_stmt test06.c 25:5 - statement
- eq_expr test06.c 25:10 - condition
+ if_stmt test06.cpp 25:5 - statement
+ eq_expr test06.cpp 25:10 - condition
- isUsed: 1
- parm_decl a test06.c 23:17 - operand
+ parm_decl a test06.cpp 23:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -177,14 +177,14 @@ function_decl func3 test06.c 23:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- return_expr test06.c 26:9 - then
- cleanup_point_expr test06.c 28:13 - statement
- expr_stmt test06.c 28:13 - operand
+ return_expr test06.cpp 26:9 - then
+ cleanup_point_expr test06.cpp 28:13 - statement
+ expr_stmt test06.cpp 28:13 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 23:17 - ref
+ parm_decl a test06.cpp 23:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -196,7 +196,7 @@ function_decl func3 test06.c 23:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 300 - operand
-function_decl func4 test06.c 31:6
+function_decl func4 test06.cpp 31:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -216,13 +216,13 @@ function_decl func4 test06.c 31:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 31:18 - function result
+ result_decl test06.cpp 31:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test06.c 31:17 - argument
+ parm_decl a test06.cpp 31:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -233,10 +233,10 @@ function_decl func4 test06.c 31:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- if_stmt test06.c 33:5 - code
+ if_stmt test06.cpp 33:5 - code
ne_expr - condition
- isUsed: 1
- parm_decl a test06.c 31:17 - operand
+ parm_decl a test06.cpp 31:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -248,13 +248,13 @@ function_decl func4 test06.c 31:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- cleanup_point_expr test06.c 35:17 - then
- expr_stmt test06.c 35:17 - operand
+ cleanup_point_expr test06.cpp 35:17 - then
+ expr_stmt test06.cpp 35:17 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 31:17 - ref
+ parm_decl a test06.cpp 31:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -266,7 +266,7 @@ function_decl func4 test06.c 31:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 400 - operand
-function_decl func5 test06.c 39:6
+function_decl func5 test06.cpp 39:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -286,13 +286,13 @@ function_decl func5 test06.c 39:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 39:18 - function result
+ result_decl test06.cpp 39:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test06.c 39:17 - argument
+ parm_decl a test06.cpp 39:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -304,10 +304,10 @@ function_decl func5 test06.c 39:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
statement_list - code
- if_stmt test06.c 41:5 - statement
+ if_stmt test06.cpp 41:5 - statement
ne_expr - condition
- isUsed: 1
- parm_decl a test06.c 39:17 - operand
+ parm_decl a test06.cpp 39:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -319,13 +319,13 @@ function_decl func5 test06.c 39:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- cleanup_point_expr test06.c 43:17 - then
- expr_stmt test06.c 43:17 - operand
+ cleanup_point_expr test06.cpp 43:17 - then
+ expr_stmt test06.cpp 43:17 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 39:17 - ref
+ parm_decl a test06.cpp 39:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -337,13 +337,13 @@ function_decl func5 test06.c 39:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 500 - operand
- cleanup_point_expr test06.c 45:13 - statement
- expr_stmt test06.c 45:13 - operand
+ cleanup_point_expr test06.cpp 45:13 - statement
+ expr_stmt test06.cpp 45:13 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 39:17 - ref
+ parm_decl a test06.cpp 39:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -355,7 +355,7 @@ function_decl func5 test06.c 39:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 600 - operand
-function_decl func6 test06.c 48:6
+function_decl func6 test06.cpp 48:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -375,13 +375,13 @@ function_decl func6 test06.c 48:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 48:18 - function result
+ result_decl test06.cpp 48:18 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl a test06.c 48:17 - argument
+ parm_decl a test06.cpp 48:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -392,13 +392,13 @@ function_decl func6 test06.c 48:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- bind_expr test06.c 56:13 - code
+ bind_expr test06.cpp 56:13 - code
statement_list - operand
- bind_expr test06.c 54:5 - statement
- if_stmt test06.c 50:5 - operand
- eq_expr test06.c 50:10 - condition
+ bind_expr test06.cpp 54:5 - statement
+ if_stmt test06.cpp 50:5 - operand
+ eq_expr test06.cpp 50:10 - condition
- isUsed: 1
- parm_decl a test06.c 48:17 - operand
+ parm_decl a test06.cpp 48:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -410,8 +410,8 @@ function_decl func6 test06.c 48:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- bind_expr test06.c 53:15 - then
- var_decl k test06.c 52:13 - operand
+ bind_expr test06.cpp 53:15 - then
+ var_decl k test06.cpp 52:13 - operand
integer_cst 32 - decl size
integer_cst 10 - initial
integer_type - var type
@@ -423,22 +423,22 @@ function_decl func6 test06.c 48:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- cleanup_point_expr test06.c 52:17 - statement
- decl_expr test06.c 52:17 - operand
- var_decl k test06.c 52:13 - operand
- return_expr test06.c 53:9 - statement
+ cleanup_point_expr test06.cpp 52:17 - statement
+ decl_expr test06.cpp 52:17 - operand
+ var_decl k test06.cpp 52:13 - operand
+ return_expr test06.cpp 53:9 - statement
block - operand
- var_decl k test06.c 52:13 - block vars
+ var_decl k test06.cpp 52:13 - block vars
block - operand
block - sub block
- var_decl k test06.c 52:13 - block vars
- cleanup_point_expr test06.c 56:13 - statement
- expr_stmt test06.c 56:13 - operand
+ var_decl k test06.cpp 52:13 - block vars
+ cleanup_point_expr test06.cpp 56:13 - statement
+ expr_stmt test06.cpp 56:13 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl a test06.c 48:17 - ref
+ parm_decl a test06.cpp 48:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -453,8 +453,8 @@ function_decl func6 test06.c 48:6
block - operand
block - sub block
block - sub block
- var_decl k test06.c 52:13 - block vars
-function_decl func7 test06.c 59:6
+ var_decl k test06.cpp 52:13 - block vars
+function_decl func7 test06.cpp 59:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -474,13 +474,13 @@ function_decl func7 test06.c 59:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 59:21 - function result
+ result_decl test06.cpp 59:21 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl aptr test06.c 59:17 - argument
+ parm_decl aptr test06.cpp 59:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -491,17 +491,17 @@ function_decl func7 test06.c 59:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- bind_expr test06.c 70:16 - code
+ bind_expr test06.cpp 70:16 - code
statement_list - operand
- bind_expr test06.c 68:5 - statement
- if_stmt test06.c 61:5 - operand
+ bind_expr test06.cpp 68:5 - statement
+ if_stmt test06.cpp 61:5 - operand
integer_cst 0 - condition
- bind_expr test06.c 67:9 - then
- bind_expr test06.c 67:9 - operand
- if_stmt test06.c 63:9 - operand
- eq_expr test06.c 63:14 - condition
+ bind_expr test06.cpp 67:9 - then
+ bind_expr test06.cpp 67:9 - operand
+ if_stmt test06.cpp 63:9 - operand
+ eq_expr test06.cpp 63:14 - condition
- isUsed: 1
- parm_decl aptr test06.c 59:17 - operand
+ parm_decl aptr test06.cpp 59:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -513,8 +513,8 @@ function_decl func7 test06.c 59:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- bind_expr test06.c 66:19 - then
- var_decl k test06.c 65:17 - operand
+ bind_expr test06.cpp 66:19 - then
+ var_decl k test06.cpp 65:17 - operand
integer_cst 32 - decl size
integer_cst 10 - initial
integer_type - var type
@@ -526,31 +526,31 @@ function_decl func7 test06.c 59:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- cleanup_point_expr test06.c 65:21 - statement
- decl_expr test06.c 65:21 - operand
- var_decl k test06.c 65:17 - operand
- return_expr test06.c 66:13 - statement
+ cleanup_point_expr test06.cpp 65:21 - statement
+ decl_expr test06.cpp 65:21 - operand
+ var_decl k test06.cpp 65:17 - operand
+ return_expr test06.cpp 66:13 - statement
block - operand
- var_decl k test06.c 65:17 - block vars
+ var_decl k test06.cpp 65:17 - block vars
block - operand
block - sub block
- var_decl k test06.c 65:17 - block vars
+ var_decl k test06.cpp 65:17 - block vars
block - operand
block - sub block
block - sub block
- var_decl k test06.c 65:17 - block vars
+ var_decl k test06.cpp 65:17 - block vars
block - operand
block - sub block
block - sub block
block - sub block
- var_decl k test06.c 65:17 - block vars
- cleanup_point_expr test06.c 70:16 - statement
- expr_stmt test06.c 70:16 - operand
+ var_decl k test06.cpp 65:17 - block vars
+ cleanup_point_expr test06.cpp 70:16 - statement
+ expr_stmt test06.cpp 70:16 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl aptr test06.c 59:17 - ref
+ parm_decl aptr test06.cpp 59:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -567,8 +567,8 @@ function_decl func7 test06.c 59:6
block - sub block
block - sub block
block - sub block
- var_decl k test06.c 65:17 - block vars
-function_decl func8 test06.c 73:6
+ var_decl k test06.cpp 65:17 - block vars
+function_decl func8 test06.cpp 73:6
- isPublic: 1
function_type - function type
void_type - function return type
@@ -588,13 +588,13 @@ function_decl func8 test06.c 73:6
void_type - value
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- result_decl test06.c 73:21 - function result
+ result_decl test06.cpp 73:21 - function result
- isAutogenerated: 1
void_type - result type
type_decl void <built-in> 0:0 - type name
- isAutogenerated: 1
- isUsed: 1
- parm_decl aptr test06.c 73:17 - argument
+ parm_decl aptr test06.cpp 73:17 - argument
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -605,13 +605,13 @@ function_decl func8 test06.c 73:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
integer_cst 64 - parm size
- bind_expr test06.c 85:16 - code
+ bind_expr test06.cpp 85:16 - code
statement_list - operand
- bind_expr test06.c 83:5 - statement
- if_stmt test06.c 75:5 - operand
- eq_expr test06.c 75:10 - condition
+ bind_expr test06.cpp 83:5 - statement
+ if_stmt test06.cpp 75:5 - operand
+ eq_expr test06.cpp 75:10 - condition
- isUsed: 1
- parm_decl aptr test06.c 73:17 - operand
+ parm_decl aptr test06.cpp 73:17 - operand
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -623,13 +623,13 @@ function_decl func8 test06.c 73:6
integer_cst 2147483647 - max value
integer_cst 64 - parm size
integer_cst 0 - operand
- bind_expr test06.c 82:15 - then
+ bind_expr test06.cpp 82:15 - then
statement_list - operand
- bind_expr test06.c 81:9 - statement
- if_stmt test06.c 77:9 - operand
+ bind_expr test06.cpp 81:9 - statement
+ if_stmt test06.cpp 77:9 - operand
integer_cst 0 - condition
- bind_expr test06.c 80:23 - then
- var_decl k test06.c 79:17 - operand
+ bind_expr test06.cpp 80:23 - then
+ var_decl k test06.cpp 79:17 - operand
integer_cst 32 - decl size
integer_cst 10 - initial
integer_type - var type
@@ -641,12 +641,12 @@ function_decl func8 test06.c 73:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
statement_list - operand
- cleanup_point_expr test06.c 79:21 - statement
- decl_expr test06.c 79:21 - operand
- var_decl k test06.c 79:17 - operand
- cleanup_point_expr test06.c 80:21 - statement
- decl_expr test06.c 80:21 - operand
- var_decl l test06.c 80:17 - operand
+ cleanup_point_expr test06.cpp 79:21 - statement
+ decl_expr test06.cpp 79:21 - operand
+ var_decl k test06.cpp 79:17 - operand
+ cleanup_point_expr test06.cpp 80:21 - statement
+ decl_expr test06.cpp 80:21 - operand
+ var_decl l test06.cpp 80:17 - operand
integer_cst 32 - decl size
integer_cst 20 - initial
integer_type - var type
@@ -658,31 +658,31 @@ function_decl func8 test06.c 73:6
integer_cst -2147483648 - min value
integer_cst 2147483647 - max value
block - operand
- var_decl k test06.c 79:17 - block vars
- var_decl l test06.c 80:17 - block vars
+ var_decl k test06.cpp 79:17 - block vars
+ var_decl l test06.cpp 80:17 - block vars
block - operand
block - sub block
- var_decl k test06.c 79:17 - block vars
- var_decl l test06.c 80:17 - block vars
- return_expr test06.c 82:9 - statement
+ var_decl k test06.cpp 79:17 - block vars
+ var_decl l test06.cpp 80:17 - block vars
+ return_expr test06.cpp 82:9 - statement
block - operand
block - sub block
block - sub block
- var_decl k test06.c 79:17 - block vars
- var_decl l test06.c 80:17 - block vars
+ var_decl k test06.cpp 79:17 - block vars
+ var_decl l test06.cpp 80:17 - block vars
block - operand
block - sub block
block - sub block
block - sub block
- var_decl k test06.c 79:17 - block vars
- var_decl l test06.c 80:17 - block vars
- cleanup_point_expr test06.c 85:16 - statement
- expr_stmt test06.c 85:16 - operand
+ var_decl k test06.cpp 79:17 - block vars
+ var_decl l test06.cpp 80:17 - block vars
+ cleanup_point_expr test06.cpp 85:16 - statement
+ expr_stmt test06.cpp 85:16 - operand
convert_expr - expresssion
modify_expr - operand
indirect_ref - operand
- isUsed: 1
- parm_decl aptr test06.c 73:17 - ref
+ parm_decl aptr test06.cpp 73:17 - ref
pointer_type - decl type
integer_type - nested type
- precisionBits: 32
@@ -699,5 +699,5 @@ function_decl func8 test06.c 73:6
block - sub block
block - sub block
block - sub block
- var_decl k test06.c 79:17 - block vars
- var_decl l test06.c 80:17 - block vars
+ var_decl k test06.cpp 79:17 - block vars
+ var_decl l test06.cpp 80:17 - block vars
diff --git a/test/test06-03.txt b/test/test06-03.txt
index 6481aef..c74227e 100644
--- a/test/test06-03.txt
+++ b/test/test06-03.txt
@@ -1,12 +1,12 @@
-test06.c: In function 'void func1(int*)':
-test06.c:12:13: warning: Using parameter 'a' without checking for null pointer
+test06.cpp: In function 'void func1(int*)':
+test06.cpp:12:13: warning: Using parameter 'a' without checking for null pointer
*a = 100;
^
-test06.c: In function 'void func5(int*)':
-test06.c:45:13: warning: Using parameter 'a' without checking for null pointer
+test06.cpp: In function 'void func5(int*)':
+test06.cpp:45:13: warning: Using parameter 'a' without checking for null pointer
*a = 600;
^
-test06.c: In function 'void func7(int*)':
-test06.c:70:16: warning: Using parameter 'aptr' without checking for null pointer
+test06.cpp: In function 'void func7(int*)':
+test06.cpp:70:16: warning: Using parameter 'aptr' without checking for null pointer
*aptr = 800;
^
diff --git a/test/test06-04.txt b/test/test06-04.txt
index 8ccf003..91bb4ac 100644
--- a/test/test06-04.txt
+++ b/test/test06-04.txt
@@ -3,8 +3,8 @@ cleanup_point_expr : a,
expr_stmt : a,
convert_expr : a,
modify_expr : a,
-test06.c: In function 'void func1(int*)':
-test06.c:12:13: warning: Using parameter 'a' without checking for null pointer
+test06.cpp: In function 'void func1(int*)':
+test06.cpp:12:13: warning: Using parameter 'a' without checking for null pointer
*a = 100;
^
indirect_ref : a,
@@ -129,8 +129,8 @@ cleanup_point_expr : a,
expr_stmt : a,
convert_expr : a,
modify_expr : a,
-test06.c: In function 'void func5(int*)':
-test06.c:45:13: warning: Using parameter 'a' without checking for null pointer
+test06.cpp: In function 'void func5(int*)':
+test06.cpp:45:13: warning: Using parameter 'a' without checking for null pointer
*a = 600;
^
indirect_ref : a,
@@ -246,8 +246,8 @@ cleanup_point_expr : aptr,
expr_stmt : aptr,
convert_expr : aptr,
modify_expr : aptr,
-test06.c: In function 'void func7(int*)':
-test06.c:70:16: warning: Using parameter 'aptr' without checking for null pointer
+test06.cpp: In function 'void func7(int*)':
+test06.cpp:70:16: warning: Using parameter 'aptr' without checking for null pointer
*aptr = 800;
^
indirect_ref : aptr,
diff --git a/test/test06.c b/test/test06.cpp
index 3aca55b..3aca55b 100644
--- a/test/test06.c
+++ b/test/test06.cpp