aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/tests/functional/47_minus_with_sub.sy
blob: 27940ceabd05f05dc8560376fd65fc8b78a82431 (plain)
1
2
3
4
5
6
7
8
9
10
// Use minus with sub in one expr
int main () {
    int a;
    int b;
    a = -2;
    b = 1;
    a = a - -b + -(a + b) % -(a - b);
    putint(a);
    return 0;
}