[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr31127.c
blobf45b10ed5bb64531f39c61020a91411a667c04f2
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 void ParseStringSidToSid(char *s, int* p) {
5 int i = 0;
7 while (*s) {
8 while (*s && *s != '-')
9 s++;
10 if (*s== '-')
11 s++;
13 p[i++] = *s;