diff options
-rw-r--r-- | test/Makefile | 6 | ||||
-rw-r--r-- | test/test1-01.txt | 3 | ||||
-rw-r--r-- | test/test1-03.txt | 10 |
3 files changed, 14 insertions, 5 deletions
diff --git a/test/Makefile b/test/Makefile index ac92b30..0e5ddbd 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,4 +1,4 @@ -.PHONY: test1 test2 crashtest1 crashtest2 all crashes clean +.PHONY: test1 test2 test3 crashtest1 crashtest2 all crashes clean .NOTPARALLEL: all allcrash CC := gcc-5 @@ -7,7 +7,7 @@ CXX := g++-5 PLUGIN = ../build/src/.libs/astdumper.so CMD = ${CXX} -fplugin=${PLUGIN} -fplugin-arg-astdumper-command=${1} ${2} -o a.out 2>${3} -all: test1 test2 clean +all: test1 test2 test3 clean crashes: crashtest1 crashtest2 clean clean: @@ -17,6 +17,8 @@ test1: $(call CMD,dump,test1.c,test1-01.txt) test2: $(call CMD,smalldump,test1.c,test1-02.txt) +test3: + $(call CMD,memoryusage,test1.c,test1-03.txt) crashtest1: $(call CMD,dump,crashtest1.h,crashtest1-01.txt) diff --git a/test/test1-01.txt b/test/test1-01.txt index 0f9f533..8f8db0e 100644 --- a/test/test1-01.txt +++ b/test/test1-01.txt @@ -310,7 +310,6 @@ function_decl fun1 test1.c 29:5 integer_cst 32 - type size integer_cst -2147483648 - min value integer_cst 2147483647 - max value - integer_cst 0 - initial statement_list - operand cleanup_point_expr - statement decl_expr - operand @@ -325,7 +324,6 @@ function_decl fun1 test1.c 29:5 integer_cst 32 - type size integer_cst -2147483648 - min value integer_cst 2147483647 - max value - integer_cst 0 - initial cleanup_point_expr - statement decl_expr - operand - isUsed: 1 @@ -339,7 +337,6 @@ function_decl fun1 test1.c 29:5 integer_cst 32 - type size integer_cst -2147483648 - min value integer_cst 2147483647 - max value - integer_cst 1 - initial cleanup_point_expr - statement Not supported node type: expr_stmt - operand - statement cleanup_point_expr - statement diff --git a/test/test1-03.txt b/test/test1-03.txt new file mode 100644 index 0000000..cf0bdab --- /dev/null +++ b/test/test1-03.txt @@ -0,0 +1,10 @@ +Allocations before cleanup: 54 +Allocations after cleanup: 0 +Allocations before cleanup: 57 +Allocations after cleanup: 0 +Allocations before cleanup: 39 +Allocations after cleanup: 0 +Allocations before cleanup: 81 +Allocations after cleanup: 0 +Allocations before cleanup: 50 +Allocations after cleanup: 0 |