]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add testcase for GCC 13 branch s390 bug [PR120480]
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 May 2025 12:35:12 +0000 (14:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 13 Jun 2025 11:50:25 +0000 (13:50 +0200)
This got broken with r13-9727 and fixed with either of
r13-9729 or r13-9728.

2025-05-30  Jakub Jelinek  <jakub@redhat.com>

PR target/120480
* gcc.dg/pr120480.c: New test.

(cherry picked from commit c13d5b939fee565047394475952878dc5394fb74)

gcc/testsuite/gcc.dg/pr120480.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.dg/pr120480.c b/gcc/testsuite/gcc.dg/pr120480.c
new file mode 100644 (file)
index 0000000..cf7b47a
--- /dev/null
@@ -0,0 +1,11 @@
+/* PR target/120480 */
+/* { dg-do compile } */
+/* { dg-options "-O0" } */
+
+struct S { int a, b, c; } s;
+
+void
+foo (void)
+{
+  struct S t = s;
+}