summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/cc2/regression-tests/pure2-chained-comparisons.cpp2
blob: 96c8f0ce4c15acc283cc67bb9f965b7c0f311818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
main: () -> int = {
    i:=0; while i<3 next i++ {
        j:=0; while j<3 next j++ {
            k:=0; while k<3 next k++ {
                std::cout
                    << i << " "
                    << j << " "
                    << k << ": "
                    << (i == j == k) as std::string << " "
                    << (i <  j <= k) as std::string << " "
                    << (i >= j >  k) as std::string << "\n";
            }
        }
    }
}