diff mbox

[5/6] Add testcase for PR45230.

Message ID 1282347880-797-6-git-send-email-sebpop@gmail.com
State New
Headers show

Commit Message

Sebastian Pop Aug. 20, 2010, 11:44 p.m. UTC
2010-08-20  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/45230
	* gcc.dg/graphite/id-pr45230.c: New.
---
 gcc/ChangeLog.graphite                     |    5 +++++
 gcc/testsuite/gcc.dg/graphite/id-pr45230.c |   14 ++++++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 gcc/testsuite/gcc.dg/graphite/id-pr45230.c
diff mbox

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index f1879f2..488b51a 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,10 @@ 
 2010-08-20  Sebastian Pop  <sebastian.pop@amd.com>
 
+	PR middle-end/45230
+	* gcc.dg/graphite/id-pr45230.c: New.
+
+2010-08-20  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* tree-scalar-evolution.c (instantiate_array_ref): New.
 	(instantiate_scev_r): Also handle ARRAY_REFs.
 
diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr45230.c b/gcc/testsuite/gcc.dg/graphite/id-pr45230.c
new file mode 100644
index 0000000..80f6769
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/graphite/id-pr45230.c
@@ -0,0 +1,14 @@ 
+unsigned char buf[10];
+main ()
+{
+  unsigned off1, len, i;
+  unsigned char *p1;
+  for (len = 0; len < 8; len++)
+    {
+      p1 = buf;
+      for (i = 0; i < off1; i++)
+	*p1++ = '\0';
+      for (i = 0; i < len; i++)
+	*p1++ = 'a';
+    }
+}