2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / nop-mcount.c
blob139fbb0638ee31b84247a7e7539dc599a7e4f30f
1 /* Test -mnop-mcount */
2 /* { dg-do compile { target { { *-*-linux* } && nonpic } } } */
3 /* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */
4 /* { dg-final { scan-assembler-not "__fentry__" } } */
5 /* Origin: Andi Kleen */
6 extern void foobar(char *);
8 void func(void)
10 foobar ("Hello world\n");
13 void func2(void)
15 int i;
16 for (i = 0; i < 10; i++)
17 foobar ("Hello world");
20 void func3(a)
21 char *a;
23 foobar("Hello world");