Mercurial > projects > dang
comparison tests/code/sarray_2.d @ 208:41ccd50e7cbc
Added missing tests
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 12 Aug 2008 18:21:06 +0200 |
parents | 0e10479623f6 |
children |
comparison
equal
deleted
inserted
replaced
207:e0551773a005 | 208:41ccd50e7cbc |
---|---|
1 //fail | |
2 int main() | 1 int main() |
3 { | 2 { |
4 int[10] a; | 3 int[10] a; |
5 // static array assignment is illegal - we fail for other reasons though | 4 // static array initialization is legal |
6 int[10] b = a; | 5 int[10] b = a; |
7 } | 6 } |
8 | 7 |