Mercurial > projects > ldc
changeset 668:216b14b9a773
Add tests.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 07 Oct 2008 20:22:04 +0200 |
parents | 9c48213cfd96 |
children | 92ec7487a1a0 |
files | tests/mini/boolexp.d tests/mini/dottypeexp.d |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/mini/boolexp.d Tue Oct 07 20:22:04 2008 +0200 @@ -0,0 +1,7 @@ +bool got() { return true; } +extern(C) int printf(char*, ...); +void main() +{ + bool b = true && got(); + printf("%d\n", b ? 1 : 0); +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/mini/dottypeexp.d Tue Oct 07 20:22:04 2008 +0200 @@ -0,0 +1,4 @@ +extern(C) int printf(char*, ...); +template Foo() { void test() { printf("test\n"); typeof(this).whee(); } } +class Bar { void whee() { printf("whee\n"); } mixin Foo!(); } +void main() { (new Bar).test(); }