[gcc r14-7111] testsuite: Add testcase for already fixed PR [PR112734]
Jakub Jelinek
jakub@gcc.gnu.org
Wed Jan 10 16:19:32 GMT 2024
https://gcc.gnu.org/g:ac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1
commit r14-7111-gac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Jan 10 17:18:38 2024 +0100
testsuite: Add testcase for already fixed PR [PR112734]
This test was already fixed by r14-6051 aka PR112770 fix.
2024-01-10 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/112734
* gcc.dg/bitint-64.c: New test.
Diff:
---
gcc/testsuite/gcc.dg/bitint-64.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gcc/testsuite/gcc.dg/bitint-64.c b/gcc/testsuite/gcc.dg/bitint-64.c
new file mode 100644
index 00000000000..0c7524c088b
--- /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;
+}
More information about the Gcc-cvs
mailing list