diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common/attr-retain-6.c')
-rw-r--r-- | gcc/testsuite/c-c++-common/attr-retain-6.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/c-c++-common/attr-retain-6.c b/gcc/testsuite/c-c++-common/attr-retain-6.c index ed6cfae..ace9a7e 100644 --- a/gcc/testsuite/c-c++-common/attr-retain-6.c +++ b/gcc/testsuite/c-c++-common/attr-retain-6.c @@ -17,6 +17,9 @@ free_slotinfo (struct dtv_slotinfo_list **elemp) return 1; } +/* Prune out the valid warning for the function above: + { dg-prune-output "-Winfinite-recursion" } */ + __attribute__ ((section ("__libc_freeres_fn"))) void free_mem (void) /* { dg-warning "'.*' without 'retain' attribute and '.*' with 'retain' attribute are placed in a section with the same name" "" { target R_flag_in_section } .-1 } */ |