From: Jakub Jelinek Date: Wed, 10 Jan 2024 16:18:38 +0000 (+0100) Subject: testsuite: Add testcase for already fixed PR [PR112734] X-Git-Tag: basepoints/gcc-15~3028 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1;p=thirdparty%2Fgcc.git testsuite: Add testcase for already fixed PR [PR112734] This test was already fixed by r14-6051 aka PR112770 fix. 2024-01-10 Jakub Jelinek PR tree-optimization/112734 * gcc.dg/bitint-64.c: New test. --- diff --git a/gcc/testsuite/gcc.dg/bitint-64.c b/gcc/testsuite/gcc.dg/bitint-64.c new file mode 100644 index 000000000000..0c7524c088b5 --- /dev/null +++ b/gcc/testsuite/gcc.dg/bitint-64.c @@ -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; +}