aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20071203-1.c
blob: 154b28bc9b2bbf21543cd7aa1d4744cf685978af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */

struct User { char username[10]; };

void
auth_set_username (struct User *user)
{
  char *d;
  char ch;
  d = user->username + (user->username[0] == '~');
  while ((ch = *d++) != '\0') /* do nothing */ ;
}