Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/gcc.dg/pg.c
2023-03-06 14:48:14 +01:00

18 lines
453 B
C

/* Test -fprofile override */
/* { dg-do compile } */
/* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */
/* { dg-final { scan-assembler-not "mcount" } } */
/* Origin: Andi Kleen */
extern void foobar(const char *);
__attribute__((no_instrument_function)) void func(void)
{
foobar ("Hello world\n");
}
__attribute__((no_instrument_function)) void func2(void)
{
int i;
for (i = 0; i < 10; i++)
foobar ("Hello world");
}