diff mbox series

[testsuite,pushed] Fix sloppy PR93231 test

Message ID baaeeb0f-54dd-48d1-8df1-7000eaed213d@gjlay.de
State New
Headers show
Series [testsuite,pushed] Fix sloppy PR93231 test | expand

Commit Message

Georg-Johann Lay Sept. 1, 2026, 4:39 p.m. UTC
This test failed with

gcc.dg/pr93231.c:12:48: warning: right shift count >= width of type 
[-Wshift-count-overflow]
gcc.dg/pr93231.c:30:5: error: array of inappropriate type initialized 
from string constant

As it's unclear how to make it work on int16, require int32plus.

Johann

--

gcc/testsuite/
	PR testsuite/93231
	* gcc.dg/pr93231.c: Require int32plus.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/pr93231.c b/gcc/testsuite/gcc.dg/pr93231.c
index cd0b3f320f7..74c17fe05c1 100644
--- a/gcc/testsuite/gcc.dg/pr93231.c
+++ b/gcc/testsuite/gcc.dg/pr93231.c
@@ -1,4 +1,4 @@ 
-/* { dg-do compile } */
+/* { dg-do compile { target int32plus } } */
  /* { dg-options "-O2 -fdump-tree-forwprop2-details 
-Wno-shift-count-negative" } */

  int ctz_ice1 (int x)