Commit 7e806cfa by Sebastian Pop Committed by Sebastian Pop

Add testcase for PR47593

2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>

	PR middle-end/47653
	* gcc.dg/graphite/run-id-pr47593.c: New.

From-SVN: r176803
parent cbc1994b
2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/47653
* gcc.dg/graphite/run-id-pr47593.c: New.
2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/47653
* gcc.dg/graphite/run-id-pr47653.c: New.
* gcc.dg/graphite/interchange-3.c: Do not use unsigned types for
induction variables.
......
/* { dg-options "-O2 -fgraphite-identity -m32" } */
struct Foo {
int **p;
int **q;
};
int __attribute__((noinline))
bar (void)
{
struct Foo f;
int j, i = 1;
char *p;
int *x = &i;
int *y = &j;
f.p = &y;
f.q = &x;
p = (char *)&f;
for (j = 0; j < sizeof (int *); ++j)
p++;
return ***(int ***)p;
}
extern void abort (void);
int main()
{
if (bar () != 1)
abort ();
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment