Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / tailcall-3.c
blob4055bc3f52d092018486b65bfc996033e2320ae0
1 /* The return argument needs a type conversion which on some targets
2 (e.g. s390) needs additional code. So it is invalid to do tail
3 call optimization here. */
5 /* { dg-do compile } */
6 /* { dg-options "-O2" } */
8 extern void abort (void);
10 long long __attribute__((noinline))
11 foo ()
13 return 3;
16 int __attribute__((noinline))
17 boo ()
19 return foo ();
22 int
23 main ()
25 if (boo () != 3)
26 abort ();