summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20080924_0.c
blob: db7745077e26395fcd8032a717e42eaede1c88b1 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-lto-do assemble }  */
/* { dg-lto-options {{-O2 -flto -funsigned-char}} }  */ 
typedef unsigned int size_t;
foo (const char *src, unsigned char *dst, size_t size)
{
  int ch;
  while ((ch = *src++) != '\0') {
  }
}