aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr44194-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr44194-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr44194-1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr44194-1.c b/gcc/testsuite/gcc.dg/pr44194-1.c
new file mode 100644
index 0000000..a03aa5a
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr44194-1.c
@@ -0,0 +1,13 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -fdump-rtl-dse1" } */
+#include <stdint.h>
+
+struct ints { int a, b, c; } foo();
+void bar(int a, int b);
+
+void func() {
+ struct ints s = foo();
+ bar(s.a, s.b);
+}
+/* { dg-final { scan-rtl-dump "global deletions = 2" "dse1" } } */
+/* { dg-final { cleanup-rtl-dump "dse1" } } */