public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-2237] d: Add testcase from PR108962
@ 2023-07-02 13:54 Iain Buclaw
  0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2023-07-02 13:54 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2e06e39a12e5a79bdb72d3c146cc71292f875aed

commit r14-2237-g2e06e39a12e5a79bdb72d3c146cc71292f875aed
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Sun Jul 2 15:44:49 2023 +0200

    d: Add testcase from PR108962
    
    The issue was fixed in r14-2232.
    
            PR d/108962
    
    gcc/testsuite/ChangeLog:
    
            * gdc.dg/pr108962.d: New test.

Diff:
---
 gcc/testsuite/gdc.dg/pr108962.d | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gcc/testsuite/gdc.dg/pr108962.d b/gcc/testsuite/gdc.dg/pr108962.d
new file mode 100644
index 00000000000..0fefa126b54
--- /dev/null
+++ b/gcc/testsuite/gdc.dg/pr108962.d
@@ -0,0 +1,13 @@
+// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108962
+// { dg-do compile }
+// { dg-options "-fno-exceptions -fdump-tree-original" }
+extern(C) void main()
+{
+    final switch (0)
+    {
+        case 1:
+            return;
+    }
+}
+// { dg-final { scan-tree-dump-times "_d_assert_msg" 1 "original" } }
+// { dg-final { scan-tree-dump-not "_d_throw" "original" } }

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

only message in thread, other threads:[~2023-07-02 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-02 13:54 [gcc r14-2237] d: Add testcase from PR108962 Iain Buclaw

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).