(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
record-mcount.c
       1  /* Test -mrecord-mcount */
       2  /* { dg-do compile { target { *-*-linux* && nonpic } } } */
       3  /* { dg-options "-pg -mrecord-mcount" } */
       4  /* { dg-final { scan-assembler "mcount_loc" } } */
       5  /* Origin: Andi Kleen */
       6  extern void foobar(char *);
       7  
       8  void func(void)
       9  {
      10    foobar ("Hello world\n");
      11  }
      12  
      13  void func2(void)
      14  {
      15    int i;
      16    for (i = 0; i < 10; i++)
      17      foobar ("Hello world");
      18  }
      19  
      20  void func3(a)
      21  char *a;
      22  {
      23    foobar("Hello world");
      24  }