Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/nested-func-4.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do run } */ |
2 /* { dg-options "-pg" } */ | |
3 /* { dg-options "-pg -static" { target hppa*-*-hpux* } } */ | |
4 /* { dg-require-profiling "-pg" } */ | |
5 | |
6 extern void abort(void); | |
7 | |
8 void foo(int i) | |
9 { | |
10 void bar(void) | |
11 { | |
12 if (i != 2) | |
13 abort (); | |
14 } | |
15 | |
16 bar(); | |
17 } | |
18 | |
19 int main(void) | |
20 { | |
21 foo (2); | |
22 return 0; | |
23 } | |
24 | |
25 /* { dg-final { cleanup-profile-file } } */ |