summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20090120_0.c
blob: 6c69a9918b2dd3742822eeae80fbc05f7959d103 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-lto-options {{-flto -funsigned-char}} } */

extern void abort ();

char c = 0xff;

int
main ()
{
 int i = (unsigned) c;
 if (i < 0)
   abort ();
 return 0;
}