Skip to content

Commit

Permalink
testsuite: inline: inlined-into-1: Fix noinline and implicit-int
Browse files Browse the repository at this point in the history
This can happen with the new gcc14, so use noipa that also implies
noinline, noclone and no_icf.

Signed-off-by: Marcos Paulo de Souza <[email protected]>
  • Loading branch information
marcosps committed Sep 2, 2024
1 parent 4c858e7 commit e5070ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testsuite/inline/inlined-into-1.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* { dg-compile "-fdump-ipa-clones -O3 -g3 -shared"} */
/* { dg-compile "-fdump-ipa-clones -O3 -g3 -shared -Wno-implicit-int"} */
/* { dg-options "-where-is-inlined g"} */

static inline int g(void)
{
return 42;
}

static __attribute__((noinline)) h(void)
static __attribute__((noipa)) h(void)
{
return g();
}
Expand Down

0 comments on commit e5070ef

Please sign in to comment.