[committed] testsuite: Add testcase for already fixed PR [PR112734]

Message ID ZZ7D2DRQbU1cWJcp@tucnak
State New
Headers
Series [committed] testsuite: Add testcase for already fixed PR [PR112734] |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 success Testing passed
linaro-tcwg-bot/tcwg_gcc_check--master-arm success Testing passed
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 success Testing passed

Commit Message

Jakub Jelinek Jan. 10, 2024, 4:20 p.m. UTC
  Hi!

This test was already fixed by r14-6051 aka PR112770 fix.

Tested on x86_64-linux, committed to trunk as obvious.

2024-01-10  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/112734
	* gcc.dg/bitint-64.c: New test.


	Jakub
  

Patch

--- gcc/testsuite/gcc.dg/bitint-64.c.jj	2024-01-10 17:17:08.438466886 +0100
+++ gcc/testsuite/gcc.dg/bitint-64.c	2024-01-10 17:15:20.431019135 +0100
@@ -0,0 +1,16 @@ 
+/* PR tree-optimization/112734 */
+/* { dg-do compile { target bitint } } */
+/* { dg-options "-std=c23 -fnon-call-exceptions -ftrapv" } */
+
+#if __BITINT_MAXWIDTH__ >= 128
+_BitInt(128) out;
+#else
+int out;
+#endif
+
+int
+main ()
+{
+  _BitInt(8) q[1];
+  out -= 1;
+}