(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
ipa-clone-1.c
       1  /* PR ipa/64693 */
       2  /* { dg-do compile } */
       3  /* { dg-require-named-sections "" } */
       4  /* { dg-options "-O3 -fipa-cp -fipa-cp-clone -fdump-ipa-cp"  } */
       5  
       6  static int __attribute__ ((noinline, section ("test_section")))
       7  foo (int arg)
       8  {
       9    return 7 * arg;
      10  }
      11  
      12  int
      13  bar (int arg)
      14  {
      15    return foo (5);
      16  }
      17  
      18  /* { dg-final { scan-assembler "test_section" } } */
      19  /* { dg-final { scan-ipa-dump "Creating a specialized node of foo" "cp" } } */