aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/trunc.c
blob: 6f138c0036e2071d577c6c1bfddf9163f3064e79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-additional-options "-std=gnu89" } */

main ()
{
  printf ("%x, %x\n", (unsigned char) main, main);
}

foo (p)
     char *p;
{
  p[0] = (char)foo;
  p[1] = (char)foo;
}