gcc/testsuite/ChangeLog:
PR testsuite/103469
* c-c++-common/attr-retain-5.c: Prune out valid warning.
* c-c++-common/attr-retain-6.c: Same.
* c-c++-common/attr-retain-9.c: Same.
return 1;
}
+/* Prune out the valid warning for the function above:
+ { dg-prune-output "-Winfinite-recursion" } */
+
__attribute__ ((used, retain, section ("__libc_freeres_fn")))
static void free_mem (void)
{
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 } */
return 1;
}
+/* Prune out the valid warning for the function above:
+ { dg-prune-output "-Winfinite-recursion" } */
+
__attribute__ ((section ("__libc_freeres_fn")))
static void free_mem (void)
/* { dg-warning "defined but not used" "" { target *-*-* } .-1 } */