summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ifc-3.c
blob: e853ec4df9bc8b2adf331be46db1196dfc7858a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR 20994 */
/* { dg-do compile } */
int foo(double* p, double* q)
{
    int i=0;

    for (; q!=p; ++q)
        if (*q)
            ++i;

    return i;
}