From 61daecc46bd5dd2c24041651803bee8eeedae68d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 15 Jun 2016 19:10:44 +0200 Subject: [PATCH] * gcc.c-torture/compile/20160615-1.c: New test. From-SVN: r237489 --- gcc/testsuite/ChangeLog | 2 ++ gcc/testsuite/gcc.c-torture/compile/20160615-1.c | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20160615-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ad4d230f969..a10f14353f2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,7 @@ 2016-06-15 Jakub Jelinek + * gcc.c-torture/compile/20160615-1.c: New test. + * g++.dg/cpp0x/ref-qual17.C: New test. 2016-06-15 Ilya Enkovich diff --git a/gcc/testsuite/gcc.c-torture/compile/20160615-1.c b/gcc/testsuite/gcc.c-torture/compile/20160615-1.c new file mode 100644 index 00000000000..1865a77ed38 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20160615-1.c @@ -0,0 +1,10 @@ +int a; +void bar (int, unsigned, unsigned); + +void +foo (unsigned x) +{ + unsigned b = a ? x : 0; + if (x || b) + bar (0, x, b); +} -- 2.30.2