diff options
author | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-04-29 14:03:22 +0200 |
---|---|---|
committer | Erick Ochoa <erick.ochoa@theobroma-systems.com> | 2020-06-03 16:05:26 +0200 |
commit | f869618cec0b1347e39fee7cdc474528268a75c9 (patch) | |
tree | e19b539d79eab68de094b05684ed7819a555295a /gcc/testsuite/gcc.dg | |
parent | bbe0bf8b494c5821c6c58599943190df0d275898 (diff) |
Dealing with eliminating writes to elimited fields when they are the only gimple statement in bb
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/ipa/ipa-structreorg-58-csmith-7.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-58-csmith-7.c b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-58-csmith-7.c new file mode 100644 index 00000000000..3edc8a44499 --- /dev/null +++ b/gcc/testsuite/gcc.dg/ipa/ipa-structreorg-58-csmith-7.c @@ -0,0 +1,12 @@ +/* { dg-do run } */ +/* { dg-options "-w -flto -flto-partition=none -fipa-dead-field-eliminate" } */ + +#include <stdint.h> +struct a { + int32_t b +} c; +d() { + for (;; c.b = 0) + ; +} +main() {} |