diff options
author | David Malcolm <dmalcolm@redhat.com> | 2016-09-02 15:22:21 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2016-09-02 15:22:21 +0000 |
commit | 950f6c851965c50f4460a9b5230b0425c4c77a06 (patch) | |
tree | f23ce1600b7221b1811026f2b18b32e392b338c7 /gcc/selftest-run-tests.c | |
parent | 5a81036247b70013eeb764e4c0e2f65c52d6142b (diff) | |
download | gcc-950f6c851965c50f4460a9b5230b0425c4c77a06.zip gcc-950f6c851965c50f4460a9b5230b0425c4c77a06.tar.gz gcc-950f6c851965c50f4460a9b5230b0425c4c77a06.tar.bz2 |
Improvements to typed_splay_tree
This patch adds foreach, max and min methods to
class typed_splay_tree, along with the start of a selftest
suite.
gcc/ChangeLog:
* Makefile.in (OBJS): Add typed-splay-tree.o.
* selftest-run-tests.c (selftest::run_tests): Call
typed_splay_tree_c_tests.
* selftest.h (typed_splay_tree_c_tests): New decl.
* typed-splay-tree.c: New file.
* typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
(typed_splay_tree::max): New method.
(typed_splay_tree::min): New method.
(typed_splay_tree::foreach): New method.
(typed_splay_tree::closure): New struct.
(typed_splay_tree::inner_foreach_fn): New function.
From-SVN: r239958
Diffstat (limited to 'gcc/selftest-run-tests.c')
-rw-r--r-- | gcc/selftest-run-tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/selftest-run-tests.c b/gcc/selftest-run-tests.c index 6453e31..e20bbd0 100644 --- a/gcc/selftest-run-tests.c +++ b/gcc/selftest-run-tests.c @@ -56,6 +56,7 @@ selftest::run_tests () ggc_tests_c_tests (); sreal_c_tests (); fibonacci_heap_c_tests (); + typed_splay_tree_c_tests (); /* Mid-level data structures. */ input_c_tests (); |