public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8329] testsuite: Add testcase for already fixed PR [PR107385]
@ 2024-02-15 15:14 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2024-02-15 15:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:407b04b59f712ba41d1bcfbf86eba68c52e7917f

commit r13-8329-g407b04b59f712ba41d1bcfbf86eba68c52e7917f
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Feb 15 15:55:25 2024 +0100

    testsuite: Add testcase for already fixed PR [PR107385]
    
    This testcase has been fixed by the PR113921 fix, but unlike testcase
    in there this one is not target specific.
    
    2024-02-15  Jakub Jelinek  <jakub@redhat.com>
    
            PR middle-end/107385
            * gcc.dg/pr107385.c: New test.
    
    (cherry picked from commit 5459a9074afabf700f055fc8164f88dadb1c39b0)

Diff:
---
 gcc/testsuite/gcc.dg/pr107385.c | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/pr107385.c b/gcc/testsuite/gcc.dg/pr107385.c
new file mode 100644
index 000000000000..b678f57a3dfc
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr107385.c
@@ -0,0 +1,20 @@
+/* PR middle-end/107385 */
+/* { dg-do run } */
+/* { dg-options "-O2" } */
+
+__attribute__((noipa)) int
+foo (void)
+{
+  int x;
+  asm goto ("": "=r" (x) : "0" (15) :: lab);
+  x = 6;
+lab:
+  return x;
+}
+
+int
+main ()
+{
+  if (foo () != 6)
+    __builtin_abort ();
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-15 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-15 15:14 [gcc r13-8329] testsuite: Add testcase for already fixed PR [PR107385] Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).