From c82c07726da2ed895875090bc8be91fc0704b733 Mon Sep 17 00:00:00 2001 From: Erick Ochoa Date: Thu, 18 Jun 2020 17:20:37 +0200 Subject: deleting writes to field --- .../gcc.dg/ipa/ipa-structreorg-49-array-0.c | 48 ---------------------- 1 file changed, 48 deletions(-) delete mode 100644 gcc/testsuite/gcc.dg/ipa/ipa-structreorg-49-array-0.c (limited to 'gcc/testsuite/gcc.dg/ipa/ipa-structreorg-49-array-0.c') diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-49-array-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-49-array-0.c deleted file mode 100644 index 6f4fb557d16..00000000000 --- a/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-49-array-0.c +++ /dev/null @@ -1,48 +0,0 @@ -/* { dg-do run } */ -/* { dg-options "-flto -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=nextout,nextin -fipa-typelist-struct=astruct_s " } */ - -#include -#include - -int -main (int argc, char **argv) -{ - struct astruct_s - { - int id; - long cost; - void *tail; - void *head; - void *nextin; - void *nextout; - short ident; - long flow; - long org_cost; - }; - struct cstruct_s - { - int id; - long cost; - void *tail; - void *head; - short ident; - long flow; - long org_cost; - }; - struct bstruct_s - { - struct astruct_s *basic_arc; - }; - long num = argc; - struct astruct_s array[100]; - struct astruct_s *old_arcs = array; - struct bstruct_s b; - struct bstruct_s *c = &b; - c->basic_arc = array + num; - c->basic_arc->cost = num; - struct cstruct_s *other = ((struct cstruct_s *) (array)) + num; - size_t off = c->basic_arc - old_arcs; - size_t off2 = other - (struct cstruct_s *) old_arcs; - assert ((struct cstruct_s *) c->basic_arc == other); - assert (c->basic_arc->cost == other->cost); -} -- cgit v1.2.3