public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [committed] Add PR71280 testcase
@ 2016-05-26 12:02 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2016-05-26 12:02 UTC (permalink / raw)
  To: gcc-patches

Hi!

I came up with a simple C testcase for a PR, which apparently Martin
fixed yesterday in PR71239.

Thus, I've just committed following testcase as obvious and will close the
PR.

2016-05-26  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/71280
	* gcc.dg/pr71280.c: New test.

--- gcc/testsuite/gcc.dg/pr71280.c.jj	2016-05-26 11:27:20.865844253 +0200
+++ gcc/testsuite/gcc.dg/pr71280.c	2016-05-26 11:26:52.000000000 +0200
@@ -0,0 +1,15 @@
+/* PR tree-optimization/71280 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+extern char v[];
+
+int
+foo ()
+{
+  int k = 0;
+  typedef char T[64];
+  for (int i = 0; i < 64; i++)
+    k += (*(T *) &v[0])[i];
+  return k;
+}

	Jakub

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-26  9:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 12:02 [committed] Add PR71280 testcase Jakub Jelinek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).