diff options
author | David Malcolm <dmalcolm@redhat.com> | 2019-12-11 18:58:56 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2019-12-11 18:58:56 +0000 |
commit | 0230c89710f748153fcab4fb80a7576942922c7d (patch) | |
tree | 715b485000a442dd072af129d5897d6db5621a90 /gcc/function-tests.c | |
parent | 3455115379cef3a84ce8154b6c4316ed7585f73f (diff) | |
download | gcc-0230c89710f748153fcab4fb80a7576942922c7d.zip gcc-0230c89710f748153fcab4fb80a7576942922c7d.tar.gz gcc-0230c89710f748153fcab4fb80a7576942922c7d.tar.bz2 |
function-tests.c: expose selftest::make_fndecl for use elsewhere
This is used by new selftests in the analyzer patch kit.
gcc/ChangeLog:
* function-tests.c (selftest::make_fndecl): Make non-static.
* selftest.h (selftest::make_fndecl): New decl.
From-SVN: r279242
Diffstat (limited to 'gcc/function-tests.c')
-rw-r--r-- | gcc/function-tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/function-tests.c b/gcc/function-tests.c index 2440dd6..f3406c4 100644 --- a/gcc/function-tests.c +++ b/gcc/function-tests.c @@ -82,11 +82,11 @@ namespace selftest { /* Helper function for selftests of function-creation. */ -static tree +tree make_fndecl (tree return_type, const char *name, vec <tree> ¶m_types, - bool is_variadic = false) + bool is_variadic) { tree fn_type; if (is_variadic) |