public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-3336] [PR tree-optimization/105820] Add test.
@ 2022-10-17 13:41 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2022-10-17 13:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:01d7d459e433196b1faa4ee025a314266887fc59

commit r13-3336-g01d7d459e433196b1faa4ee025a314266887fc59
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Mon Oct 17 15:32:35 2022 +0200

    [PR tree-optimization/105820] Add test.
    
            PR tree-optimization/105820
    
    gcc/testsuite/ChangeLog:
    
            * g++.dg/tree-ssa/pr105820.c: New test.

Diff:
---
 gcc/testsuite/g++.dg/tree-ssa/pr105820.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr105820.c b/gcc/testsuite/g++.dg/tree-ssa/pr105820.c
new file mode 100644
index 00000000000..507950f42d3
--- /dev/null
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr105820.c
@@ -0,0 +1,26 @@
+// { dg-do compile }
+// { dg-options "-O2 -fstrict-enums --param case-values-threshold=1"}
+
+typedef int basic_block;
+
+enum gimple_code {};
+
+struct omp_region {
+  omp_region *outer;
+  basic_block cont;
+};
+
+void
+oof (void);
+
+void
+build_omp_regions_1 (omp_region *parent, basic_block bb, gimple_code code)
+{
+  if (code == 2)
+    parent = parent->outer;
+  else if (code != 0)
+    parent->cont = bb;
+
+  if (parent)
+    oof ();
+}

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

only message in thread, other threads:[~2022-10-17 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-17 13:41 [gcc r13-3336] [PR tree-optimization/105820] Add test Aldy Hernandez

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