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