aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/struct/wo_prof_escape_arg_to_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/struct/wo_prof_escape_arg_to_local.c')
-rw-r--r--gcc/testsuite/gcc.dg/struct/wo_prof_escape_arg_to_local.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/gcc/testsuite/gcc.dg/struct/wo_prof_escape_arg_to_local.c b/gcc/testsuite/gcc.dg/struct/wo_prof_escape_arg_to_local.c
deleted file mode 100644
index 0116d81..0000000
--- a/gcc/testsuite/gcc.dg/struct/wo_prof_escape_arg_to_local.c
+++ /dev/null
@@ -1,44 +0,0 @@
-/* { dg-do run } */
-
-#include <stdlib.h>
-struct str
-{
- int a;
- float b;
-};
-
-#ifdef STACK_SIZE
-#if STACK_SIZE > 8000
-#define N 1000
-#else
-#define N (STACK_SIZE/8)
-#endif
-#else
-#define N 1000
-#endif
-
-int
-foo (struct str * p_str)
-{
- static int sum = 0;
-
- sum = sum + p_str->a;
- return sum;
-}
-
-int
-main ()
-{
- int i, sum;
- struct str * p = malloc (N * sizeof (struct str));
- if (p == NULL)
- return 0;
- for (i = 0; i < N; i++)
- sum = foo (p+i);
-
- return 0;
-}
-
-/*--------------------------------------------------------------------------*/
-/* { dg-final { scan-ipa-dump "is passed to local function...Excluded." "ipa_struct_reorg" { xfail *-*-* } } } */
-/* { dg-final { cleanup-ipa-dump "*" } } */