1/* { dg-do compile } */
2/* { dg-options "-fgnu-tm -O" } */
3
4__attribute__((transaction_safe))
5void Info_RemoveKey (char *s)
6{
7	char    *o = 0;
8	while (1)
9	{
10		s++;
11		while (*s)
12		{
13			if (!*s)
14				return;
15			*o++ = *s++;
16		}
17		*o = 0;
18	}
19}
20