2 string-opt-17.c from the execute part of the gcc torture tests.
11 /* Copyright (C) 2003 Free Software Foundation.
13 Test strcpy optimizations don't evaluate side-effects twice.
15 Written by Jakub Jelinek, June 23, 2003. */
20 test1 (char *s
, size_t i
)
22 strcpy (s
, "foobarbaz" + i
++);
38 strcpy (s
, "foobarbaz" + check2 ());
42 testTortureExecute (void)
45 if (test1 (buf
, 7) != 8 || memcmp (buf
, "az", 3))
48 if (memcmp (buf
, "baz", 4))