aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-01-10 17:18:38 +0100
committerJakub Jelinek <jakub@redhat.com>2024-01-10 17:18:38 +0100
commitac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1 (patch)
treef9b4b631289063eb2e822b73363e15745c7214f0 /gcc
parent8ed77a2356c3562f96c64f968e7529065c128c6a (diff)
downloadgcc-ac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1.zip
gcc-ac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1.tar.gz
gcc-ac6bcce1d0a364129c7e9f6cf7f75233bdd5c5f1.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/bitint-64.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/bitint-64.c b/gcc/testsuite/gcc.dg/bitint-64.c
new file mode 100644
index 0000000..0c7524c
--- /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;
+}