aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20180605-1.c
blob: 915dafddad04fa0277df26da82c0b6ecf34cd6ef (plain)
1
2
3
4
5
6
7
8
9
void f (int *p, int n)
{
    int j = 0, k;
    
    for (int i = 0; i < n; i++)
        if ((k = *p++) > 0)
            j += k;
    return j;
}