annotate tests/code/basic_2.d @ 89:a49bb982a7b0 new_gen

Using the new SourceLocation system to handle errors. Also, this is the first push for making the errors don't throw, but continue to check the source.
author Anders Johnsen <skabet@gmail.com>
date Sun, 04 May 2008 20:27:01 +0200
parents 2d28b21faad6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
a49bb982a7b0 Using the new SourceLocation system to handle errors. Also, this is the first push for making the errors don't throw, but continue to check the source.
Anders Johnsen <skabet@gmail.com>
parents: 24
diff changeset
1 //fail
24
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
2 int main()
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
3 {
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
4 int x = y;
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
5 int y = 1;
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
6 return y;
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
7 }
2d28b21faad6 New codegen!
Anders Halager <halager@gmail.com>
parents:
diff changeset
8