mirror of
https://github.com/autc04/Retro68.git
synced 2024-06-28 11:30:19 +00:00
33 lines
594 B
C
33 lines
594 B
C
/* PR tree-optimization/20076 */
|
|
/* { dg-options "-O2 -Wmissing-noreturn -fgnu89-inline" } */
|
|
/* { dg-additional-options "-mno-mmx" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
|
|
/* { dg-do run } */
|
|
/* { dg-require-effective-target untyped_assembly } */
|
|
|
|
extern void abort (void);
|
|
|
|
double
|
|
foo (int arg)
|
|
{
|
|
if (arg != 116)
|
|
abort();
|
|
return arg + 1;
|
|
}
|
|
|
|
inline double
|
|
bar (int arg)
|
|
{
|
|
foo (arg);
|
|
__builtin_return (__builtin_apply ((void (*) ()) foo,
|
|
__builtin_apply_args (), 16));
|
|
}
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
if (bar (116) != 117.0)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|