summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/951204-1.c
blob: c4d585b6b9ed8844b39e4ade75209adbbea9a108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
f (char *x)
{
  *x = 'x';
}

main ()
{
  int i;
  char x = '\0';

  for (i = 0; i < 100; ++i)
    {
      f (&x);
      if (*(const char *) &x != 'x')
	abort ();
    }
  exit (0);
}