blob: efba1bf2cff8843f2987c114c6df17d40bc08ad4 [file] [log] [blame]
/* Test -mfentry override */
/* { dg-do compile { target { *-*-linux* && { ! ia32 } } } } */
/* { dg-require-effective-target mfentry } */
/* { dg-options "-mfentry" } */
/* { dg-final { scan-assembler-not "__fentry__" } } */
/* Origin: Andi Kleen */
extern void foobar(const char *);
void __attribute__((no_instrument_function)) func(void)
{
foobar ("Hello world\n");
}
void __attribute__((no_instrument_function)) func2(void)
{
int i;
for (i = 0; i < 10; i++)
foobar ("Hello world");
}