blob: a5f8d27fda4357b0ad8bb6c55c57b318fca19817 [file] [log] [blame]
/* Test -mnop-mcount */
/* { dg-do compile { target { *-*-linux* && nonpic } } } */
/* { dg-require-effective-target mfentry } */
/* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */
/* { dg-final { scan-assembler-not "__fentry__" } } */
/* Origin: Andi Kleen */
extern void foobar(char *);
void func(void)
{
foobar ("Hello world\n");
}
void func2(void)
{
int i;
for (i = 0; i < 10; i++)
foobar ("Hello world");
}
void func3(a)
char *a;
{
foobar("Hello world");
}