Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr101145-1.c
blobe6f7923d78ac703012f810e5e7700d219731867f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 unsigned foo(unsigned val, unsigned start)
6 unsigned cnt = 0;
7 for (unsigned i = start; i > val; ++i)
8 cnt++;
9 return cnt;
12 /* { dg-final { scan-tree-dump "cnt_\[0-9\] = -start_\[0-9\]\\(D\\);" "optimized" } } */