* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Don't
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr44852.c
blob440653e5f17b612b6bc29667a04853ba977ebc4f
1 __attribute__ ((__noinline__))
2 char *sf(char *s, char *s0)
4 asm ("");
5 while (*--s == '9')
6 if (s == s0)
8 *s = '0';
9 break;
11 ++*s++;
12 return s;
15 int main()
17 char s[] = "999999";
18 char *x = sf (s+2, s);
19 if (x != s+1 || __builtin_strcmp (s, "199999") != 0)
20 __builtin_abort ();
21 return 0;