summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorErick Ochoa <erick.ochoa@theobroma-systems.com>2020-02-04 23:41:35 +0100
committerErick Ochoa <erick.ochoa@theobroma-systems.com>2020-04-28 23:35:33 +0200
commitdd9f78377f0f2ad67a8bc217da9fd497fb336898 (patch)
treeff568850cf92a81d785755222e03db7a0cbbf727 /gcc/testsuite/gcc.dg
parent275f613f76db38097204e0bd16204c51777881e5 (diff)
dealing with phi nodes
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/ipa/ipa-structreorg-45-phis-0.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-45-phis-0.c b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-45-phis-0.c
new file mode 100644
index 00000000000..d119c462697
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-45-phis-0.c
@@ -0,0 +1,11 @@
+/* { dg-do link } */
+/* { dg-options "-flto -flto-partition=none -fipa-dead-field-eliminate -fdump-ipa-structure-reorg -fipa-typelist-field=nextout -fipa-typelist-struct=arc" } */
+
+struct a {
+ struct arc *b;
+} c(struct a *d, struct a *e) {
+ while (e)
+ d = d;
+}
+int main() {}
+