summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/pr80725.c
blob: d556e6ba7ca3431a4de38b36507b04558d75abe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Regression test for PR/80725.  */

/* { dg-do compile } */
/* { dg-options "-O2 -march=zEC12" } */

int a, e;
const char b;
char c;
const int d;
void bar (short);

void
foo (int x, int y)
{
  long f = d;
  short g = 0;
  while (e)
    while (a < x)
      {
	if (y)
	  goto *(void *)d;
	g = b | b + g;
	bar (g);
	c = (char) (long) foo;
      }
}