[committed] testsuite: Require trampolines for gcc.dg/pr118325.c

Message ID 20250109182306.1182997-1-dimitar@dinux.eu
State New
Headers
Series [committed] testsuite: Require trampolines for gcc.dg/pr118325.c |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Dimitar Dimitrov Jan. 9, 2025, 6:23 p.m. UTC
  The test case uses a nested function, which is not supported by some
targets.

This fixes a spurious error for pru-unknown-elf, where nested functions
are not supported.  Pushed to trunk as obvious.

gcc/testsuite/ChangeLog:

	* gcc.dg/pr118325.c: Require effective target trampolines.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
 gcc/testsuite/gcc.dg/pr118325.c | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/pr118325.c b/gcc/testsuite/gcc.dg/pr118325.c
index 74f92cc2bb6..7129bc9b9be 100644
--- a/gcc/testsuite/gcc.dg/pr118325.c
+++ b/gcc/testsuite/gcc.dg/pr118325.c
@@ -1,4 +1,5 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target trampolines } */
 /* { dg-options "-std=gnu17 -fchecking" } */
 
 void f(void*);