Skip to content
Snippets Groups Projects
Commit 660e5834 authored by Richard Biener's avatar Richard Biener
Browse files

Add testcase for PR103615

This adds a testcase for a fixed wrong-code bug.

2022-01-03  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/103615
	* gcc.dg/torture/pr103615.c: New testcase.
parent 5da23a13
No related branches found
No related tags found
No related merge requests found
/* { dg-do run } */
int z = 5;
int a[6] = { 0, 0, 0, 0, 0, 1 };
int main()
{
for (int x = 5; x; x--)
for (int y = z; y >= x; y--)
a[y - x] += a[y];
if (a[0] != 7)
__builtin_abort ();
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment