Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/pg.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* Test -fprofile override */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-fprofile" { target i?86-*-linux* x86_64-*-linux* } } */ | |
4 /* { dg-final { scan-assembler-not "mcount" } } */ | |
5 /* Origin: Andi Kleen */ | |
6 extern void foobar(const char *); | |
7 | |
8 __attribute__((no_instrument_function)) void func(void) | |
9 { | |
10 foobar ("Hello world\n"); | |
11 } | |
12 | |
13 __attribute__((no_instrument_function)) void func2(void) | |
14 { | |
15 int i; | |
16 for (i = 0; i < 10; i++) | |
17 foobar ("Hello world"); | |
18 } |