diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/inline-3.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/inline-3.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/inline-3.c b/gcc/testsuite/gcc.dg/inline-3.c new file mode 100644 index 000000000..a3de19306 --- /dev/null +++ b/gcc/testsuite/gcc.dg/inline-3.c @@ -0,0 +1,47 @@ +/* { dg-options "-O2 -funit-at-a-time" } */ +/* { dg-final { scan-assembler-not "big_function_2" } } */ +static void +big_function_2(void); +void +big_function_1() +{ + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + big_function_2(); +} +static void +big_function_2() +{ + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); + while (t()); +} |