annotate tests/code/sarray_3.d @ 208:41ccd50e7cbc

Added missing tests
author Anders Johnsen <skabet@gmail.com>
date Tue, 12 Aug 2008 18:21:06 +0200
parents 0e10479623f6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
161
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
1 //fail
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
2 int main()
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
3 {
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
4 int[10] a;
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
5 // static array initialization is legal
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
6 int[10] b = a;
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
7 // static array assignment is illegal
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
8 b = a;
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
9 }
0e10479623f6 Changed the tests for static arrays a little
Anders Halager <halager@gmail.com>
parents:
diff changeset
10