From: Jakub Jelinek Date: Fri, 2 Feb 2024 10:29:25 +0000 (+0100) Subject: testsuite: Add another bitint testcase [PR113691] X-Git-Tag: basepoints/gcc-15~1391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a049acabcb11d6ae9e54c81e5835e4f3372e80fb;p=thirdparty%2Fgcc.git testsuite: Add another bitint testcase [PR113691] This is fixed by the PR113692 patch. 2024-02-02 Jakub Jelinek PR tree-optimization/113691 * gcc.dg/bitint-83.c: New test. --- diff --git a/gcc/testsuite/gcc.dg/bitint-83.c b/gcc/testsuite/gcc.dg/bitint-83.c new file mode 100644 index 000000000000..96d3f713e889 --- /dev/null +++ b/gcc/testsuite/gcc.dg/bitint-83.c @@ -0,0 +1,23 @@ +/* PR tree-optimization/113691 */ +/* { dg-do compile { target bitint } } */ +/* { dg-options "-O2 -std=gnu11 -w" } */ + +#if __BITINT_MAXWIDTH__ >= 944 +_BitInt (944) i; +#else +_BitInt (63) i; +#endif + +void foo (); + +void +bar () +{ + foo (i); +} + +void +foo (int *p) +{ + *p = 0; +}