aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2022-03-22 08:41:02 +0100
committerJakub Jelinek <jakub@redhat.com>2022-03-22 08:41:02 +0100
commit7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0 (patch)
treeb67f3b3ca4d5b14fa4b829fdc73ef3c448df74c0 /gcc
parent6adbb51eaa85f5bfed1ee06327daca306d48986d (diff)
downloadgcc-7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0.zip
gcc-7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0.tar.gz
gcc-7d5ee289510f0c7ac2c318e396c8a6f0d0d93db0.tar.bz2
testsuite: Add testcase for no longer failing PR [PR102645]
This test started ICEing with r12-3876 but stopped with r12-5264. 2022-03-22 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/102645 * gcc.c-torture/compile/pr102645.c: New test.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/pr102645.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr102645.c b/gcc/testsuite/gcc.c-torture/compile/pr102645.c
new file mode 100644
index 0000000..f2e0f44
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/pr102645.c
@@ -0,0 +1,18 @@
+/* PR tree-optimization/102645 */
+
+volatile int a[1], d;
+int b, c;
+
+int
+main ()
+{
+ if (b && c)
+ for (c = 0; c < 3; c++)
+ {
+ for (int e = 0; e < 6; e++)
+ for (int f = 0; f < 12; f++)
+ d && a[0];
+ continue;
+ }
+ return 0;
+}