1 /* { dg-require-alias "" } */
2 int fn2(int);
3 int fn3(int);
4 
5 __attribute__((flatten))
fn1(int p1)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);
14 
15 /* Again, but this time the target doesn't have the attribute.  */
fn1a(int p1)16 int fn1a(int p1)
17 {
18   int a = fn2(p1);
19   return fn3(a);
20 }
21 __attribute__((flatten))
22 __attribute__((alias("fn1a")))
23 int fn4a(int p1); /* { dg-warning "ignored" } */
24 
25 int
test()26 test ()
27 {
28   return fn4(1)+fn4a(1);
29 }
30