summaryrefslogblamecommitdiff
path: root/tests/exec/while.cpp
blob: d69002b4e7cd7aba25b42a7308d66a9f2b8163dd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                        
#include <iostream>

int main() {
  int i = 0;
  int cpt = 0;
  for( ; i < 10; ) {
    int j;
    j = 10;
    for ( ; j > 0; ) {
      ++cpt;
      --j;
    }
    i++;
  }
  if (cpt == 100)
    std::cout << "ok\n";
}