OSDN Git Service

2005-12-22 Dale Johannesen <dalej@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / pr23943.c
1 /* This used to ICE in side_effects_p, due to a problem in cse.c.
2    Origin: marcus at jet dot franken dot de.  */
3 /* { dg-do compile { target i?86-*-* x86_64-*-* } } */
4 /* { dg-options "-O2 -fPIC" } */
5
6 typedef long unsigned int size_t;
7
8 extern size_t strlen (__const char *__s)
9     __attribute__ ((__nothrow__)) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1)));
10
11 static char savecallsin[256] = "";
12
13 int read_agent_config(void)
14 {
15   savecallsin[0] = '\0';
16
17   if (savecallsin[strlen(savecallsin) - 1] != '/')
18     __builtin___strncat_chk (savecallsin, "/", sizeof(savecallsin) - strlen(savecallsin) - 1, __builtin_object_size (savecallsin, 2 > 1)) ;
19   return 0;
20 }