aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/lto/20100103-2_0.c
blob: 1fb6a7b3e2aba3ffcf13ecda84442f3e281c4350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-lto-do link } */
/* { dg-lto-options {{-O -flto -funsigned-char} {-O -flto -fsigned-char}} } */

char p[32] = "";
int main ()
{
  if (__builtin___strcpy_chk (p + 1, "vwxyz",
			      __builtin_object_size (p + 1, 0)) != p + 1)
    __builtin_abort ();
  return 0;
}