diff mbox

[committed] Add PR71280 testcase

Message ID 20160526093118.GY28550@tucnak.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek May 26, 2016, 9:31 a.m. UTC
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.


	Jakub
diff mbox

Patch

--- 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;
+}