From 61daecc46bd5dd2c24041651803bee8eeedae68d Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 15 Jun 2016 19:10:44 +0200 Subject: * 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 (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ad4d230..a10f143 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 0000000..1865a77 --- /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); +} -- cgit v1.1