Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / torture / pr54824.c
1 /* { dg-do compile } */
2 /* { dg-options "-w" } */
3
4 void __attribute__((noreturn)) bar(void)
5 {
6 }
7
8 void foo(int i, char *p, char *q)
9 {
10   while (*p++) {
11       if (i)
12         p++;
13       if (!*q++)
14         bar();
15   }
16 }