Commit 0230c897 by David Malcolm Committed by David Malcolm

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
parent 34551153
2019-12-11 David Malcolm <dmalcolm@redhat.com>
* function-tests.c (selftest::make_fndecl): Make non-static.
* selftest.h (selftest::make_fndecl): New decl.
2019-12-11 Lewis Hyatt <lhyatt@gmail.com>
PR 91853
......@@ -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> &param_types,
bool is_variadic = false)
bool is_variadic)
{
tree fn_type;
if (is_variadic)
......
......@@ -171,6 +171,13 @@ class line_table_test
~line_table_test ();
};
/* Helper function for selftests that need a function decl. */
extern tree make_fndecl (tree return_type,
const char *name,
vec <tree> &param_types,
bool is_variadic = false);
/* Run TESTCASE multiple times, once for each case in our test matrix. */
extern void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment