OSDN Git Service

Backported from mainline
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / 20071203-1.c
1 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
2
3 struct User { char username[10]; };
4
5 void
6 auth_set_username (struct User *user)
7 {
8   char *d;
9   char ch;
10   d = user->username + (user->username[0] == '~');
11   while ((ch = *d++) != '\0') /* do nothing */ ;
12 }