From 187bdbd5645ff5271bee436e0c854a11b69e9570 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 21 Apr 2020 12:47:46 +0200 Subject: [PATCH] testsuite: Add testcase for already fixed PR [PR94686] This has been fixed by the PR71311 r7-1170-g4618c453205f18 change. 2020-04-21 Jakub Jelinek PR c/94686 * gcc.c-torture/compile/pr94686.c: New test. --- gcc/testsuite/ChangeLog | 9 +++++++-- gcc/testsuite/gcc.c-torture/compile/pr94686.c | 9 +++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 gcc/testsuite/gcc.c-torture/compile/pr94686.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 89178740200..372a89f9578 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,9 @@ -2020-04-21 Iain Sandoe +2020-04-21 Jakub Jelinek + + PR c/94686 + * gcc.c-torture/compile/pr94686.c: New test. + +2020-04-21 Iain Sandoe PR c++/94661 * g++.dg/coroutines/ramp-return-a.C: New test. @@ -1277,7 +1282,7 @@ PR c++/94336 - template keyword accepted before destructor names. * g++.dg/template/template-keyword2.C: New test. -2020-03-27 Iain Sandoe +2020-03-27 Iain Sandoe * g++.dg/coroutines/torture/symmetric-transfer-00-basic.C: Add . diff --git a/gcc/testsuite/gcc.c-torture/compile/pr94686.c b/gcc/testsuite/gcc.c-torture/compile/pr94686.c new file mode 100644 index 00000000000..df94413c577 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr94686.c @@ -0,0 +1,9 @@ +/* PR c/94686 */ + +int a = 0, b = 0; + +int +foo (void) +{ + return (int) (long) (b * 0 >= a & b * 0 >= a); +} -- 2.30.2