comparison tests/parser/for_1.d @ 149:393a1f47a6d2

For loops in AST and sema. Should have correct scope and such now.
author Anders Johnsen <skabet@gmail.com>
date Mon, 21 Jul 2008 21:00:20 +0200
parents 060b6eb16db9
children
comparison
equal deleted inserted replaced
148:6ec686d9c87d 149:393a1f47a6d2
1 1
2 int main() 2 int main()
3 { 3 {
4 int x = 0;
4 for(int i = 0; i < 5; i = i + 1) 5 for(int i = 0; i < 5; i = i + 1)
5 { 6 {
7 x = x + i;
6 } 8 }
7 return 0; 9 return x;
8 } 10 }