Mercurial > projects > dang
changeset 156:2c5a8061aa4a
Made some tests dmd-compatible
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Mon, 21 Jul 2008 22:13:12 +0200 |
parents | 0ea5d2f3e96b |
children | bb01c1dc452a |
files | tests/code/switch_1.d tests/code/switch_2.d tests/code/switch_3.d tests/code/switch_4.d tests/parser/class_2.d |
diffstat | 5 files changed, 10 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/code/switch_1.d Mon Jul 21 21:45:54 2008 +0200 +++ b/tests/code/switch_1.d Mon Jul 21 22:13:12 2008 +0200 @@ -1,6 +1,7 @@ -void main(int x) +void main() { + int x; switch (x) { }
--- a/tests/code/switch_2.d Mon Jul 21 21:45:54 2008 +0200 +++ b/tests/code/switch_2.d Mon Jul 21 22:13:12 2008 +0200 @@ -1,6 +1,7 @@ -void main(int x) +void main() { + int x; switch (x) { case 1:
--- a/tests/code/switch_3.d Mon Jul 21 21:45:54 2008 +0200 +++ b/tests/code/switch_3.d Mon Jul 21 22:13:12 2008 +0200 @@ -1,6 +1,7 @@ -void main(int x) +void main() { + int x; switch (x) { case 1, 2: