2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / fentry-override.c
blob4dd87a8af5c6da73fa9374d64b7022e296a6c883
1 /* Test -mfentry override */
2 /* { dg-do compile { target { { *-*-linux* } && { ! { ia32 } } } } } */
3 /* { dg-options "-mfentry" } */
4 /* { dg-final { scan-assembler-not "__fentry__" } } */
5 /* Origin: Andi Kleen */
6 extern void foobar(const char *);
8 void __attribute__((no_instrument_function)) func(void)
10 foobar ("Hello world\n");
13 void __attribute__((no_instrument_function)) func2(void)
15 int i;
16 for (i = 0; i < 10; i++)
17 foobar ("Hello world");