aboutsummaryrefslogtreecommitdiff
path: root/gcc/function-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/function-tests.c')
-rw-r--r--gcc/function-tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/function-tests.c b/gcc/function-tests.c
index a59a066..4152cd3 100644
--- a/gcc/function-tests.c
+++ b/gcc/function-tests.c
@@ -249,6 +249,7 @@ build_trivial_generic_function ()
tsi_link_after (&stmt_iter, return_stmt, TSI_CONTINUE_LINKING);
DECL_INITIAL (fndecl) = block;
+ BLOCK_SUPERCONTEXT (block) = fndecl;
/* how to add to function? the following appears to be how to
set the body of a fndecl: */