Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/attr-flatten-1.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | |
children |
rev | line source |
---|---|
152 | 1 /* { dg-require-alias "" } */ |
2 int fn2(int); | |
3 int fn3(int); | |
4 | |
5 __attribute__((flatten)) | |
6 int fn1(int p1) | |
7 { | |
8 int a = fn2(p1); | |
9 return fn3(a); | |
10 } | |
11 __attribute__((flatten)) | |
12 __attribute__((alias("fn1"))) | |
13 int fn4(int p1); /* { dg-warning "ignored" } */ | |
14 int | |
15 test () | |
16 { | |
17 return fn4(1); | |
18 } |