diff tests/mini/boolexp.d @ 668:216b14b9a773

Add tests.
author Christian Kamm <kamm incasoftware de>
date Tue, 07 Oct 2008 20:22:04 +0200
parents
children
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);
+}