aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-02-02 11:29:25 +0100
committerJakub Jelinek <jakub@redhat.com>2024-02-02 11:30:06 +0100
commita049acabcb11d6ae9e54c81e5835e4f3372e80fb (patch)
tree2a7dd9a7d35bd499f5189a36ece13a95accf6cf5
parentfb28d5cdae149f08f0d472c210a5143a64771410 (diff)
downloadgcc-a049acabcb11d6ae9e54c81e5835e4f3372e80fb.zip
gcc-a049acabcb11d6ae9e54c81e5835e4f3372e80fb.tar.gz
gcc-a049acabcb11d6ae9e54c81e5835e4f3372e80fb.tar.bz2
testsuite: Add another bitint testcase [PR113691]
This is fixed by the PR113692 patch. 2024-02-02 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/113691 * gcc.dg/bitint-83.c: New test.
-rw-r--r--gcc/testsuite/gcc.dg/bitint-83.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/bitint-83.c b/gcc/testsuite/gcc.dg/bitint-83.c
new file mode 100644
index 0000000..96d3f71
--- /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;
+}