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
+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
/* 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)
~line_table_test ();
};
+/* Helper function for selftests that need a function decl. */
+
+extern tree make_fndecl (tree return_type,
+ const char *name,
+ vec <tree> ¶m_types,
+ bool is_variadic = false);
+
/* Run TESTCASE multiple times, once for each case in our test matrix. */
extern void