summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr69320-2.c
blob: b85672ce5289e29b41ee383d5fd5c002cf4bc46a (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
27
28
29
30
31
32
33
34
35
#include <stdlib.h>

int a, *c, d, e, g, f;
short b;

int 
fn1 ()
{
  int h = d != 10;
  if (h > g)
     asm volatile ("" : : : "memory");
  if (h == 10)
    {
      int *i = 0;
      a = 0;
      for (; a < 7; a++)
	for (; *i;)
	  ;
    }
  else
    {
      b = e / h;
      return f;
    }
  c = &h;
  abort ();
}

int
main ()
{
  fn1 ();
  exit (0);
}