* gcc.c-torture/compile/20160615-1.c: New test.
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Jun 2016 17:10:44 +0000 (19:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Jun 2016 17:10:44 +0000 (19:10 +0200)
From-SVN: r237489

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20160615-1.c [new file with mode: 0644]

index ad4d230f969544b8abf0b6f3fcaf756e646453af..a10f14353f27f7e6a4ff2e5837f68c054bfb76ec 100644 (file)
@@ -1,5 +1,7 @@
 2016-06-15  Jakub Jelinek  <jakub@redhat.com>
 
+       * gcc.c-torture/compile/20160615-1.c: New test.
+
        * g++.dg/cpp0x/ref-qual17.C: New test.
 
 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
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 (file)
index 0000000..1865a77
--- /dev/null
@@ -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);
+}