Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr115220.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "--param logical-op-non-short-circuit=0" } */
3
4 extern char **environ;
5 static char ***p_environ = &environ;
6 int
7 _setenv_r (const char *name, const char *value)
8 {
9 register char *C;
10 int offset;
11 for (C = (*p_environ)[offset]; (*C = *name++) && *C != '='; ++C);
12 for (*C++ = '='; (*C++ = *value++) != 0;);
13 return 0;
14 }