# HG changeset patch # User svnowner # Date 1096151610 0 # Node ID 3269e462791853d1cabade9dc7c1cf1445e5ae36 init dstress diff -r 000000000000 -r 3269e4627918 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,70 @@ +# $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/Makefile,v 1.8 2004/09/23 09:29:40 th Exp $ + +OBJ_DIR = obj +LOG = log.txt + +ifndef DMD +DMD = dmd +endif + +ifdef DEFLAGS +X_DEFLAGS = $(DFLAGS) +endif + +DFLAGS = $(X_DFLAGS) -od$(OBJ_DIR) + +ifndef FIND +FIND = find +endif + +ifndef RM +RM = rm -rf +endif + +ifndef ECHO +ECHO = echo +endif + +ifndef TOUCH +TOUCH = touch +endif + +to_log = >> $(LOG) 2>&1 +ext_run = exe +ext_norun = bin +ext_nocompile = no +ext_compile = o +ext_source = d + +dest_run = $(sort $(subst .$(ext_source),.$(ext_run),$(shell $(FIND) run -regex ".*\\.$(ext_source)" ) ) ) +dest_norun = $(sort $(subst .$(ext_source),.$(ext_norun),$(shell $(FIND) norun -regex ".*\\.$(ext_source)" ) ) ) +dest_compile = $(sort $(subst .$(ext_source),.$(ext_compile),$(shell $(FIND) compile -regex ".*\\.$(ext_source)" ) ) ) +dest_nocompile = $(sort $(subst .$(ext_source),.$(ext_nocompile),$(shell $(FIND) nocompile -regex ".*\\.$(ext_source)" ) ) ) + +all : compile nocompile run norun + +nocompile : $(dest_nocompile) + +%.$(ext_nocompile) : %.$(ext_source) + @if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then $(ECHO) "XPASS: $(subst .$(ext_nocompile),,$@)"; $(RM) $@; else $(ECHO) "FAIL: $(subst .$(ext_nocompile),,$@)"; $(TOUCH) $@; fi + +compile : $(dest_compile) + +%.$(ext_compile) : %.$(ext_source) + @if $(DMD) -c -of$@ $< $(to_log) ; then $(ECHO) "PASS: $(subst .$(ext_compile),,$@)"; $(TOUCH) $@; else $(ECHO) "XFAIL: $(subst .$(ext_compile),,$@)"; $(RM) $@; fi + +run : $(dest_run) + +%.$(ext_run) : %.$(ext_source) + @if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "PASS: $(subst .$(ext_run),,$@)"; else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@)"; $(RM) $@; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; fi + +norun : $(dest_norun) + +%.$(ext_norun) : %.$(ext_source) + @if $(DMD) $(DFLAGS) -of$@ $< $(to_log); then if $@ $(to_log); then $(ECHO) "XPASS: $(subst .$(ext_norun),,$@)"; else $(ECHO) "FAIL: $(subst .$(ext_norun),,$@)"; $(RM) $@; fi else $(ECHO) "XFAIL: $(subst .$(ext_run),,$@) (compiling error)"; fi + +clean_log : + $(RM) $(LOG) + +clean : + $(RM) $(OBJ_DIR)/*.* $(dest_run) $(dest_norun) $(dest_compile) $(dest_nocompile) diff -r 000000000000 -r 3269e4627918 authors.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/authors.txt Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,1 @@ +Thomas Kuehne diff -r 000000000000 -r 3269e4627918 compile/alias_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/alias_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/compile/alias_08.d,v 1.1 2004/09/23 05:51:31 th Exp $ + +// @author@ Oskar Linde +// @date@ 2004-05-20 + +struct MyStruct(Type){ + alias .MyStruct!(Type) Alias; +} + +alias MyStruct!(int) Ali2; diff -r 000000000000 -r 3269e4627918 compile/for_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/for_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/compile/for_03.d,v 1.2 2004/09/22 23:25:32 th Exp $ + +// @author@ Mike Swieton +// @date@ 2004-05-27 +// @uri@ news://pan.2004.05.27.03.36.49.673273@swieton.net + +int main(){ + for(;;){} + return 0; +} diff -r 000000000000 -r 3269e4627918 compile/mixin_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/mixin_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/compile/mixin_01.d,v 1.1 2004/09/22 07:39:34 th Exp $ + +// @author@ Vathix +// @date@ 2004-09-08 + +template mix(){ + int x; +} + +mixin .mix; diff -r 000000000000 -r 3269e4627918 compile/typedef_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compile/typedef_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/compile/typedef_05.d,v 1.1 2004/09/23 00:53:43 th Exp $ + +// @author@ Steward Gordon +// @date@ 2004-09-06 + +typedef char[] String; + +char[] test(String s){ + return s[4..6]; +} diff -r 000000000000 -r 3269e4627918 license.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/license.txt Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff -r 000000000000 -r 3269e4627918 nocompile/alias_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/alias_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/alias_05.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +alias int myint; + +void foo(int x) { } +void foo(myint m) { } // error, multiply defined function foo + +int main(char[][] args){ + myint a; + return a; +} diff -r 000000000000 -r 3269e4627918 nocompile/alias_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/alias_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/alias_06.d,v 1.2 2004/09/22 23:25:35 th Exp $ + +alias int myint; + +void test(int x){ +} + +int main(){ + myint a; + test(a); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/assert_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/assert_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/assert_03.d,v 1.1 2004/08/20 23:42:43 th Exp $ /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/tests2/compile/types_defining_01.d,v 1.1 2004/08/06 13:40:03 th Exp $ + +int main(){ + static assert(0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 nocompile/associative_array_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/associative_array_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/associative_array_01.d,v 1.1 2004/08/22 07:47:04 th Exp $ + +int main(){ + int[int] k; + k.length = 3; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/bit_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bit_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/bit_02.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +int main(){ + bit b = 2, + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 nocompile/byte_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/byte_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/byte_09.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + byte b; + int i = b.size; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/byte_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/byte_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/byte_10.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + byte b; + int i = b.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/cast_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/cast_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,24 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/cast_03.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +// @author@ Walter +// @date@ 2004-08-16 +// @uri@ news://cfpk7u$1qgs$1@digitaldaemon.com + + +interface MyInterface{ +} + +class MyClass : MyInterface { +} + +int main(){ + MyClass c; + c = new MyClass(); + + MyInterface i; + i = c; + + Object o; + o = i; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/cast_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/cast_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/cast_04.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +// @author@ Nick +// @date@ 2004-08-02 +// @uri@ news://cejsno$2g2s$1@digitaldaemon.com + +int main(){ + creal c = 3 + 5i; + double d = c; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/char_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/char_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/char_01.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + char a; + int i = a.size; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/char_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/char_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/char_02.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + char a; + int i = a.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/dchar_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/dchar_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/dchar_01.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + wchar a; + int i = a.size; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/dchar_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/dchar_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/dchar_02.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + dchar a; + int i = a.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_01.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +deprecated void test(){ +} + +int main(){ + test(); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_02.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +deprecated class MyClass{ +} + +int main(){ + MyClass c; + c = new MyClass(); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_03.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +deprecated class MyClass{ +} + +int main(){ + MyClass c; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_04.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +class MyClass{ + this(int a){ + this("abc"); + } + deprecated this(char[] c){ + } +} + +int main(){ + MyClass c = new MyClass(1); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_05.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +class MyClass{ + deprecated this(char[] c){ + } +} + +int main(){ + MyClass c = new MyClass("abc"); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_06.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +class MyClass{ + deprecated static check(){ + } +} + +int main(){ + MyClass c = new MyClass(); + c.check(); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_07.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +deprecated struct MyStruct{ +} + +int main(){ + MyStruct c; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/deprecated_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/deprecated_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/deprecated_08.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +struct MyStruct{ + deprecated check(){ + } +} + +int main(){ + MyStruct s; + s.check(); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_14.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_14.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_14.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + int i = double.size; + retrun 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_15.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_15.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_15.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + int i = double.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_16.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_16.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_16.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + double f; + f = f.isnan; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_17.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_17.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_17.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + double f; + f = f.isinfinite; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_18.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_18.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_18.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + double f; + f = f.isnormal; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_19.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_19.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_19.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + double f; + f = f.digits; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_20.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_20.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_20.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + double f; + f = f.mantissa; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/double_21.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/double_21.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/double_21.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + double f; + f = f.maxExp; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/evaluation_order_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/evaluation_order_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/evaluation_order_01.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +int main(){ + int i; + i = ++i; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/evaluation_order_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/evaluation_order_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/evaluation_order_02.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +int main(){ + int a, b, c; + c = a + (a = b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/evaluation_order_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/evaluation_order_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/evaluation_order_03.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +void check( int a, int b){ +} + +int main(){ + int i; + check(++i, ++i); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_14.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_14.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_14.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + int i = float.size; + retrun 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_15.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_15.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_15.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + int i = float.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_16.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_16.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_16.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + float f; + f = f.isnan; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_17.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_17.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_17.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + float f; + f = f.isinfinite; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_18.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_18.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_18.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + float f; + f = f.isnormal; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_19.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_19.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_19.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + float f; + f = f.digits; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_20.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_20.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_20.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + float f; + f = f.mantissa; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/float_21.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/float_21.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/float_21.d,v 1.1 2004/08/23 19:11:53 th Exp $ + +int main(){ + float f; + f = f.maxExp; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/foreach_14.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/foreach_14.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/foreach_14.d,v 1.1 2004/09/21 22:05:08 th Exp $ + +// @author@ Tyro +// @date@ 2004-09-22 +// @uri@ news://ciqutj$10bq$1@digitaldaemon.com + +int main(){ + char[] array="abc"; + foreach(int index, char; array){ + } + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 nocompile/inline_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/inline_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/inline_01.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +inline int check(){ + return 9; +} + +int main(){ + check(); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/int_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/int_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/int_05.d,v 1.1 2004/08/21 21:22:11 th Exp $ + +int main(){ + int a; + int i = a.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/int_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/int_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/int_06.d,v 1.1 2004/08/21 21:22:11 th Exp $ + +int main(){ + int a; + int i = a.size; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/interface_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/interface_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/interface_03.d,v 1.1 2004/08/23 17:18:31 th Exp $ + +interface MyInterface{ + void one(); + void two(); +} + +class MyClass : MyInterface{ + void one(){ + } +} + +int main(){ + MyClass c = new MyClass(); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/long_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/long_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/long_02.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + long a; + int i = a.sign; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/long_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/long_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/long_03.d,v 1.1 2004/08/21 08:45:53 th Exp $ + +int main(){ + long a; + int i = a.size; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/main_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/main_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,4 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/main_05.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +int main(){ +} diff -r 000000000000 -r 3269e4627918 nocompile/main_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/main_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,5 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/main_06.d,v 1.1 2004/08/20 23:42:43 th Exp $ + +void main(){ + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/opNeg_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opNeg_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/opNeg_03.d,v 1.1 2004/09/21 22:05:08 th Exp $ + +struct MyStruct{ + int x; +} + +int main(){ + MyStruct s; + -s; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/opNeg_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opNeg_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/opNeg_04.d,v 1.1 2004/09/21 22:05:08 th Exp $ + +class MyClass{ +} + +int main(){ + MyClass c = new MyClass(); + -c; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/opPos_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opPos_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/opPos_03.d,v 1.1 2004/09/21 22:05:08 th Exp $ + +struct MyStruct{ +} + +int main(){ + MyStruct s; + +s; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/opPos_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opPos_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/opPos_04.d,v 1.1 2004/09/21 22:05:08 th Exp $ + +class MyClass{ +} + +int main(){ + MyClass c = new MyClass(); + +c; + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_01.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a + b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_02.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a - b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_03.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a / b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_04.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a * b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_05.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a % b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_06.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( ++a ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_07.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( +a ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_08.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( a++ ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_09.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( -a ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_10.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( --a ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_11.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_11.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( a-- ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_12.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a = new MyClass(); + + test ( ~a ); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_13.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a & b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_14.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_14.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_14.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a | b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_15.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_15.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_15.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a ^ b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/operator_16.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/operator_16.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/operator_16.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-08-07 +// @uri@ news://cf2ivm$1qu0$1@digitaldaemon.com + +class MyClass{ +} + +void test( ... ){ +} + +int main(){ + MyClass a, b; + a = new MyClass(); + b = new MyClass(); + + test ( a << b); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/override_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_02.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +class Parent{ +} + +class Child : Parent { + override int check(){ + return 1; + } +} + +int main(){ + Child c = new Child(); + return c.check()-1; +} diff -r 000000000000 -r 3269e4627918 nocompile/override_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_03.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +class Parent{ + int check; +} + +class Child : Parent{ + override int check; +} + +int main(){ + Child c = new Child(); + return c.check; +} diff -r 000000000000 -r 3269e4627918 nocompile/override_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_04.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +class Parent{ + int test; +} + +class Child : Parent{ + override int test(){ + return 1; + } +} + +int main(){ + Child c = new Child(); + return c.test()-1; +} diff -r 000000000000 -r 3269e4627918 nocompile/override_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_05.d,v 1.1 2004/08/20 23:42:44 th Exp $ + +struct MyStruct{ + override int x; +} + +int main(){ + MyStruct s; + return s.x; +} diff -r 000000000000 -r 3269e4627918 nocompile/override_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_06.d,v 1.1 2004/08/20 23:42:45 th Exp $ + +struct MyStruct{ + override int x(){ + return 0; + } +} + +int main(){ + MyStruct s; + return s.x(); +} diff -r 000000000000 -r 3269e4627918 nocompile/override_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_07.d,v 1.1 2004/08/20 23:42:45 th Exp $ + +override int check; + +int main(){ + return check; +} diff -r 000000000000 -r 3269e4627918 nocompile/override_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/override_08.d,v 1.1 2004/08/20 23:42:45 th Exp $ + +override int check(){ + return 0; +} + +int main(){ + return check(); +} diff -r 000000000000 -r 3269e4627918 nocompile/pragma_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/pragma_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/pragma_03.d,v 1.1 2004/08/20 23:42:45 th Exp $ + +int main(){ + char * check = "compiling pragma\n"; + pragma(msg, check); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/pragma_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/pragma_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/pragma_04.d,v 1.1 2004/08/20 23:42:45 th Exp $ + +int main(){ + char [] check = "compiling pragma"; + pragma(msg, check); + return 0; +} diff -r 000000000000 -r 3269e4627918 nocompile/precondition_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/precondition_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/nocompile/precondition_01.d,v 1.1 2004/09/23 06:37:31 th Exp $ + +// @author@ Arcane Jill +// @date@ 2004-09-06 + +alias int MyInt; + +int main(){ + int check(char[]c=""){ + return 1; + } + assert(check("ABC")==1); + MyInt test(char[]c=""){ + return 2; + } + assert(test("abc")==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/array_initialization_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/array_initialization_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/array_initialization_01.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +// @author@ Drew McCormack +// @date@ 2004-04-29 +// @uri@ news://c6qbes$8fg$1@digitaldaemon.com + +int main(){ + int[2] i = [5, 13]; + assert(i.length == 2); + assert(i[0] == 5); + assert(i[1] == 13); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/assert_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/assert_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/assert_01.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +int main(){ + assert(1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/assert_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/assert_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/assert_02.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +int main(){ + static assert(1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/associative_array_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/associative_array_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/associative_array_02.d,v 1.1 2004/08/21 22:24:06 th Exp $ + +int main(){ + int[int] k; + assert(k.length == 0); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/auto_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/auto_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,21 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/auto_01.d,v 1.1 2004/09/23 00:33:38 th Exp $ + +// @author@ Sean Kelly +// @date@ 2004-09-11 + +auto class AutoClass{ + this(){ + throw new Exception("error msg"); + } + ~this(){ + assert(0); + } +} + +int main(){ + try{ + auto AutoClass ac = new AutoClass(); + }catch{ + } + return 0; +} diff -r 000000000000 -r 3269e4627918 run/auto_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/auto_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,31 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/auto_02.d,v 1.1 2004/09/23 00:33:38 th Exp $ + +// @author@ Sean Kelly +// @date@ 2004-09-11 + +int status; + +auto class AutoClass{ + void bad(){ + throw new Exception("error msg"); + } + ~this(){ + assert(status==0); + status--; + } +} + +void test(){ + try{ + auto AutoClass ac = new AutoClass(); + ac.bad(); + }catch{ + } +} + +int main(){ + assert(status==0); + test(); + assert(status==-1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/auto_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/auto_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,28 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/auto_03.d,v 1.2 2004/09/23 11:32:26 th Exp $ + +// @author@ Sean Kelly +// @date@ 2004-09-11 + +int status; + +auto class AutoClass{ + ~this(){ + assert(status==0); + status--; + throw new Exception("error msg"); + } +} + +void test(){ + assert(status==0); + auto AutoClass ac = new AutoClass(); +} + +int main(){ + try{ + test(); + }catch{ + } + assert(status==-1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/auto_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/auto_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,35 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/auto_04.d,v 1.1 2004/09/23 00:33:38 th Exp $ + +// @author@ Sean Kelly +// @date@ 2004-09-11 + +int status; + +auto class AutoClass{ + this(){ + assert(status==0); + status+=2; + } + ~this(){ + assert(status==2); + status--; + throw new Exception("error msg"); + } +} + +void check(){ + auto AutoClass ac = new AutoClass(); + throw new Exception("check error"); +} + +int main(){ + assert(status==0); + try{ + check(); + }catch{ + assert(status==1); + status-=5; + } + assert(status==-4); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/bit_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bit_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,22 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/bit_01.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +int main(){ + bit a; + assert(a.max == 1); + assert(a.min == 0); + assert(a.init == 0); + + assert(a.sizeof == typeid( bit ).tsize()); + + a = true; + assert( a == 1); + bit b = 1; + assert( b == 1); + + bit c = false; + assert( c == 0); + bit d = 0; + assert( d == 0); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/bit_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bit_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,88 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/bit_03.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +int main(){ + bit a; + bit b; + bit c; + + a = false; b = !a; + assert( a == false ); + assert( b == true ); + a = true; b = !a; + assert( a == true ); + assert( b == false ); + + // AndAnd + a=true; b=true; c=a&&b; + assert( a == true ); + assert( b == true ); + assert( c == true ); + a=true; b=false; c=a&&b; + assert( a == true ); + assert( b == false ); + assert( c == false ); + a=false; b=true; c=a&&b; + assert( a == false ); + assert( b == true ); + assert( c == false ); + a=false; b=false; c=a&&b; + assert( a == false ); + assert( b == false ); + assert( c == false ); + + // OrOr + a=true; b=true; c=a||b; + assert( a == true ); + assert( b == true ), + assert( c == true ); + a=true; b=false; c=a||b; + assert( a == true ); + assert( b == false ); + assert( c == true ); + a=false; b=true; c=a||b; + assert( a == false ); + assert( b == true ); + assert( c == true ); + a=false; b=false; c=a||b; + assert( a == false ); + assert( b == false ); + assert( c == false ); + + // Equality Expression ("==") + a=true; b=true; c= a==b; + assert( a == true ); + assert( b == true ); + assert( c == true ); + a=true; b=false; c= a==b; + assert( a == true ); + assert( b == false ); + assert( c == false ); + a=false; b=true; c= a==b; + assert( a == false ); + assert( b == true ); + assert( c == false ); + a=false; b=false; c= a==b; + assert( a == false ); + assert( b == false ); + assert( c == true ); + + // Inequality Expression ("!=") + a=true; b=true; c= a!=b; + assert( a == true ); + assert( b == true ); + assert( c == false ); + a=true; b=false; c= a!=b; + assert( a == true ); + assert( b == false ); + assert( c == true ); + a=false; b=true; c= a!=b; + assert( a == false ); + assert( b == true ); + assert( c == true ); + a=false; b=false; c= a!=b; + assert( a == false ); + assert( b == false ); + assert( c == false ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/bit_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bit_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/bit_04.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +// @author@ Carlos Santander B. +// @date@ 2004-08-20 +// @uri@ news://cg41gm$2u2d$1@digitaldaemon.com + +struct MyStruct{ + bit check; +} + +int main(){ + MyStruct s; + s.check = 0 != 0; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/bit_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bit_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/bit_05.d,v 1.2 2004/09/23 09:44:00 th Exp $ + +// @author@ Carlos Santander B. +// @date@ 2004-08-20 +// @uri@ news://cg41gm$2u2d$1@digitaldaemon.com + +class MyClass{ + bit check; +} + +int main(){ + MyClass c = new MyClass(); + c.check = 0 != 0; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/bit_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bit_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/bit_06.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +// @author@ Carlos Santander B. +// @date@ 2004-08-20 +// @uri@ news://cg41gm$2u2d$1@digitaldaemon.com + +union MyUnion{ + bit check; +} + +int main(){ + MyUnion u; + u.check = 0 != 0; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/byte_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_01.d,v 1.3 2004/08/21 21:38:30 th Exp $ + +int main(){ + byte a; + + assert( a.init == 0); + assert( byte.init == 0); + assert((cast(byte)2).init == 0); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/byte_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_02.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +int main(){ + byte a, b, c; + + // "+" + a=16; b=-124; c=a+b; + assert( a == 16); + assert( b == -124); + assert( c == -108); + a=-124; b=16; c=a+b; + assert( a == -124); + assert( b == 16); + assert( c == -108); + a=63; b=28; c=a+b; + assert( a == 63); + assert( b == 28); + assert( c == 91); + a=-63; b=-28; c=a+b; + assert( a == -63); + assert( b == -28); + assert( c == -91); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/byte_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_03.d,v 1.1 2004/08/20 23:42:51 th Exp $ + +int main(){ + byte a, b, c; + + // "%" + a=91; b=6; c=a%b; + assert( a == 91); + assert( b == 6); + assert( c == 1); + a=-91; b=12; c=a%b; + assert( a == -91); + assert( b == 12); + assert( c == -7); + a=91; b=-12; c=a%b; + assert( a == 91); + assert( b == -12); + assert( c == 7); + a=-91; b=-12; c=a%b; + assert( a == -91); + assert( b == -12); + assert( c == -7); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/byte_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_04.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +int main(){ + byte a, b, c; + + // "/" + a=91; b=7; c=a/b; + assert( a == 91); + assert( b == 7); + assert( c == 13); + a=-91; b=13; c=a/b; + assert( a == -91); + assert( b == 13); + assert( c == -7); + a=91; b=-13; c=a/b; + assert( a == 91); + assert( b == -13); + assert( c == -7); + a=-91; b=-13; c=a/b; + assert( a == -91); + assert( b == -13); + assert( c == 7); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/byte_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_05.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +int main(){ + byte a, b, c; + + // "*" + a=7; b=13; c=a*b; + assert( a == 7); + assert( b == 13); + assert( c == 91); + a=-7; b=13; c=a*b; + assert( a == -7); + assert( b == 13); + assert( c == -91); + a=7; b=-13; c=a*b; + assert( a == 7); + assert( b == -13); + assert( c == -91); + a=-7; b=-13; c=a*b; + assert( a == -7); + assert( b == -13); + assert( c == 91); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/byte_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_06.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +int main(){ + byte a, b, c; + + // "-" + a=16; b=-16; c=a-b; + assert( a == 16); + assert( b == -16); + assert( c == 32); + a=-16; b=16; c=a-b; + assert( a == -16); + assert( b == 16); + assert( c == -32); + a=-63; b=-28; c=a-b; + assert( a == -63); + assert( b == -28); + assert( c == -35); + a=63; b=28; c=a-b; + assert( a == 63); + assert( b == 28); + assert( c == 35); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/byte_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,24 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_07.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +int main(){ + byte a, b, c; + + // "&" + a=28; b=7; c=a&b; + assert( a == 28); + assert( b == 7); + assert( c == 4); + a=-28; b=7; c=a&b; + assert( a == -28); + assert( b == 7); + assert( c == 4); + a=28; b=-7; c=a&b; + assert( a == 28); + assert( b == -7); + assert( c == 24); + a=-28; b=-7; c=a&b; + assert( a == -28); + assert( b == -7); + assert( c == -32); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/byte_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,24 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_08.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +int main(){ + byte a, b, c; + + // "&" + a=28; b=7; c=a|b; + assert( a == 28); + assert( b == 7); + assert( c == 31); + a=-28; b=7; c=a|b; + assert( a == -28); + assert( b == 7); + assert( c == -25); + a=28; b=-7; c=a|b; + assert( a == 28); + assert( b == -7); + assert( c == -3); + a=-28; b=-7; c=a|b; + assert( a == -28); + assert( b == -7); + assert( c == -3); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/byte_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_11.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_11.d,v 1.2 2004/08/21 21:38:30 th Exp $ + +int main(){ + byte a; + + assert(a.sizeof == 1); + assert(byte.sizeof == 1); + assert((cast(byte)1).sizeof == 1); + assert(typeid(byte).tsize() == 1); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/byte_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_12.d,v 1.2 2004/08/21 21:38:30 th Exp $ + +int main(){ + byte a; + + assert(a.alignof >= a.sizeof); + assert(byte.alignof == a.alignof); + assert((cast(byte)1).alignof == a.alignof); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/byte_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_13.d,v 1.3 2004/08/21 21:38:30 th Exp $ + +int main(){ + byte a; + + assert(a.max == 127); + assert(byte.max == 127); + assert((cast(byte)1).max == 127); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/byte_14.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/byte_14.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/byte_14.d,v 1.2 2004/08/21 22:24:06 th Exp $ + +int main(){ + byte b; + + assert(b.min == -128); + assert(byte.min == -128); + assert((cast(byte)1).min == -128); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/cast_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/cast_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Regan Heat +// @date@ 2004-08-19 +// @uri@ news://opsczziyi5a2sq9@digitalmars.com + +enum Enum{ + a +} + +int test(Enum e){ + bit[] b; + b = cast(bit[])(cast(bit*)e); + return 0; +} + +int main(){ + Enum e; + return test(e); +} diff -r 000000000000 -r 3269e4627918 run/cast_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/cast_02.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Regan Heat +// @date@ 2004-08-19 +// @uri@ news://opsczziyi5a2sq9@digitalmars.com + +enum Enum{ + a +} + +int main(){ + bit[] b; + Enum e; + b = cast(bit[])(cast(bit*)e); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/cast_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/cast_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/cast_05.d,v 1.2 2004/09/22 23:25:38 th Exp $ + +// @author@ Nick +// @date@ 2004-08-06 +// @uri@ news://cf0mo2$rfi$1@digitaldaemon.com + +int main(){ + long l = cast(long) 12.0; + long L = 12L; + assert(l == L); + + ulong u = cast(ulong) 12.0; + ulong U = 12U; + assert(U == u); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/classes_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/classes_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/classes_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +class MyClass{ +} + +int main(){ + MyClass c; + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/classes_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/classes_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/classes_02.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +class MyClass{ + int check; +} + +int main(){ + MyClass c = new MyClass(); + c.check++; + assert( c.check == 1 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/classes_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/classes_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/classes_03.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +class MyClass{ + int check( int x){ + x = (x+1) * 2; + return x; + } +} + +int main(){ + MyClass c = new MyClass(); + assert ( c.check(1) == 4 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/compare_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/compare_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/compare_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Ben Hinkle +// @date@ 2004-08-07 +// @uri@ news://cf2tt5$2073$1@digitaldaemon.com + +class MyClass{ +} + +int main(){ + MyClass c = null; + assert( c == null); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/compare_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/compare_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/compare_02.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Ben Hinkle +// @date@ 2004-08-07 +// @uri@ news://cf2tt5$2073$1@digitaldaemon.com + +class MyClass{ +} + +int main(){ + MyClass c = new MyClass(); + assert( c != null); + + c = null; + if( c != null){ + assert(0); + } + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/complex_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/complex_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/complex_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-05-01 +// @uri@ news://c71239$1dij$1@digitaldaemon.com + +int main(){ + creal C, Cj; + real y, x; + + C = x + y * 1i + Cj; + Cj = y * 1i + C + x; + C = Cj + 1i * y + x; + Cj = 1i * y + x + C; + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/const_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/const_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/const_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Stewart Gordon +// @date@ 2004-08-10 +// @uri@ news://cfa5h3$1hf0$1@digitaldaemon.com + +struct MyStruct{ + int i; +} + +const int a = 0; +const MyStruct b = { a }; +const MyStruct c = b; + +int main(){ + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/constructor_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/constructor_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,24 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/constructor_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Stephan Wienczny +// @date@ 2004-04-30 +// @uri@ news://c6tkos$2a78$1@digitaldaemon.com + +class ClassA{} + +class ClassB{} + +class ClassC{ + ClassA a; + ClassB b; + + this(){ + a=new ClassA(); + b=new ClassB(); + } +} + +int main(){ + ClassC c = new ClassC(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/default_argument_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/default_argument_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/default_argument_01.d,v 1.1 2004/08/21 23:18:23 th Exp $ + +int status; + +void check(int plus=1){ + status+=plus; +} + +int main(){ + assert(status==0); + check(); + assert(status==1); + check(3); + assert(status==4); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/default_argument_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/default_argument_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/default_argument_02.d,v 1.1 2004/08/21 23:18:23 th Exp $ + +// @author@ Andy Friesen +// @date@ 2004-06-25 +// @uri@ news://cbfp7c$2rcg$1@digitaldaemon.com + +class MyClass{ + static MyClass test(int i=0){ + return new MyClass(); + } +} + +int main(){ + MyClass c; + c = MyClass.test; + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/delegate_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/delegate_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/delegate_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Ben Rasmussen +// @date@ 2004-08-12 +// @uri@ news://cfe9vt$1btr$1@digitaldaemon.com + +struct List(T){ + T[] S; + + void bug(void delegate(inout T) f){ + f(S[0]); + } +} + +int main(){ + List!(bit) list; + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/deprecated_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/deprecated_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/deprecated_09.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +deprecated class MyClass{ +} + +int main(){ + return 0; +} diff -r 000000000000 -r 3269e4627918 run/deprecated_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/deprecated_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/deprecated_10.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +int status; + +class MyClass{ + deprecated void depr(){ + } + void noDepr(){ + status=3; + } +} + + +int main(){ + MyClass c = new MyClass(); + assert(status==0); + c.noDepr(); + assert(status==3); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/destructor_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/destructor_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,31 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/destructor_01.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ David Friedman +// @date@ 2004-05-01 +// @uri@ news://c6v105$1flg$1@digitaldaemon.com + +int status; + +class ClassA{ + this(){ + status++; + assert(status==1); + } + + ~this(){ + status--; + assert(status==0); + } +} + +class ClassB : ClassA {} + +void test(){ + auto ClassB b = new ClassB(); + +} + +int main(){ + test(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/destructor_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/destructor_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,34 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/destructor_03.d,v 1.1 2004/08/20 23:42:52 th Exp $ + +// @author@ Ilya Zaitseff +// @date@ 2004-08-06 +// @uri@ news://opscahl7ddaaezs2@ilya.tec.amursk.ru + +int status; + +class MyClass{ + this(){ + status++; + } + + ~this(){ + status++; + status*=3; + throw new Exception("E2"); + } +} + +int main(){ + try{ + auto MyClass m = new MyClass(); + assert(status == 1); + delete m; + }catch(Exception e){ + assert(status == 6); + status/=3; + status-=2; + } + + assert( status == 0 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/do_while_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/do_while_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/do_while_01.d,v 1.1 2004/09/21 21:13:01 th Exp $ + +int main(){ + int test=10; + assert(test==10); + do{ + test--; + }while(test>0) + assert(test==0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/do_while_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/do_while_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/do_while_02.d,v 1.1 2004/09/21 21:13:01 th Exp $ + +int main(){ + int test=10; + assert(test==10); + do{ + test--; + if(test<20){ + continue; + } + assert(0); + }while(test>0) + assert(test==0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/do_while_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/do_while_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/do_while_03.d,v 1.1 2004/09/21 21:13:01 th Exp $ + +int main(){ + int test=10; + assert(test==10); + do{ + test--; + if(test<2){ + break; + } + }while(test>0) + assert(test==1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/double_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_01.d,v 1.3 2004/08/23 18:28:08 th Exp $ + +int main(){ + double d; + + assert( double.init !<> double.nan); + assert( d.init !<> double.nan); + assert( d !<> double.nan); + assert( (2.3).init !<> double.nan); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_02.d,v 1.2 2004/08/23 18:28:08 th Exp $ + +int main(){ + double d; + assert(double.sizeof == 8); + assert(double.sizeof == d.sizeof); + assert(double.sizeof == (4.2).sizeof); + assert(double.sizeof == typeid(double).tsize()); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_03.d,v 1.1 2004/08/21 22:24:06 th Exp $ + +int main(){ + double d; + + assert(double.alignof >= 8); + assert(d.alignof == double.alignof); + assert((4.2).alignof == double.alignof); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_04.d,v 1.1 2004/08/21 22:24:06 th Exp $ + +int main(){ + double d; + assert(double.infinity > double.max); + assert(d.infinity == double.infinity); + assert((4.2).infinity == double.infinity); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_05.d,v 1.1 2004/08/21 22:24:06 th Exp $ + +int main(){ + double d; + assert( double.dig > 9 ); + assert( d.dig == double.dig ); + assert( (4.2).dig == double.dig ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_06.d,v 1.1 2004/08/21 22:24:06 th Exp $ + +int main(){ + double d; + assert(double.epsilon > 0); + assert(double.epsilon < ( 1% (10 ^(double.dig) ) ) ); + assert(d.epsilon == double.epsilon); + assert((4.2).epsilon == double.epsilon); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_07.d,v 1.1 2004/08/23 17:42:18 th Exp $ + +int main(){ + double d; + assert(double.mant_dig>=8); + assert(d.mant_dig==double.mant_dig); + assert((2.3).mant_dig==double.mant_dig); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_08.d,v 1.1 2004/08/23 17:42:18 th Exp $ + +int main(){ + double d; + assert(double.max_10_exp>=20); + assert(d.max_10_exp==double.max_10_exp); + assert((4.2).max_10_exp==double.max_10_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_09.d,v 1.1 2004/08/23 17:42:18 th Exp $ + +int main(){ + double d; + assert(double.max_exp > double.max_10_exp); + assert(d.max_exp == double.max_exp); + assert((2.4).max_exp == double.max_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_10.d,v 1.1 2004/08/23 17:42:18 th Exp $ + +int main(){ + double d; + assert(double.min_10_exp <= -20); + assert(d.min_10_exp == double.min_10_exp); + assert((4.2).min_10_exp == double.min_10_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_11.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_11.d,v 1.1 2004/08/23 17:42:18 th Exp $ + +int main(){ + double d; + assert(double.min_exp < double.min_10_exp); + assert(d.min_exp == double.min_exp); + assert((4.2).min_exp == double.min_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_12.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + double d; + assert(double.max > 0xFFFFFFF); + assert(double.max < double.infinity); + assert(d.max == double.max); + assert((4.2).max == double.max); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/double_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/double_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/double_13.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + double d; + assert(double.min < 0.0000001); + assert(double.min == d.min); + assert(double.min == (4.2).min); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/enum_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/enum_01.d,v 1.1 2004/08/23 20:56:27 th Exp $ + +enum MyEnum{ + A, + B, + C +} + +int main(){ + MyEnum e; + assert(e==e.A); + assert(e==MyEnum.A); + assert(e.min==0); + assert(e.max==2); + assert(e.sizeof==int.sizeof); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/enum_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/enum_02.d,v 1.1 2004/08/23 20:56:27 th Exp $ + +enum { + A, + B, + C +} + +int main(){ + assert(A==0); + assert(B==1); + assert(C==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/enum_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/enum_03.d,v 1.1 2004/08/23 20:56:27 th Exp $ + +enum MyEnum : byte { + A, + B, + C +} + +int main(){ + MyEnum e; + assert(e==e.A); + assert(e==MyEnum.A); + assert(e.min==0); + assert(e.max==2); + assert(e.sizeof==byte.sizeof); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/enum_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/enum_04.d,v 1.1 2004/08/23 20:56:27 th Exp $ + +enum : byte { + BYTE +}; + +enum : short { + SHORT +} + +enum : int { + INT +} + +enum : long { + LONG +} + +int main(){ + assert(BYTE.sizeof == byte.sizeof); + assert(SHORT.sizeof == short.sizeof); + assert(INT.sizeof == int.sizeof); + assert(LONG.sizeof == long.sizeof); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/enum_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/enum_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/enum_05.d,v 1.3 2004/09/23 05:19:32 th Exp $ + +extern enum MyEnum; + +int main(){ + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_01.d,v 1.2 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert( float.init !<> float.nan); + assert( f.init !<> float.nan); + assert( f !<> float.nan); + assert( (2.3f).init !<> float.nan); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_02.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float d; + assert(float.sizeof == 4); + assert(float.sizeof < double.sizeof); + assert(float.sizeof == d.sizeof); + assert(float.sizeof == (4.2f).sizeof); + assert(float.sizeof == typeid(float).tsize()); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_03.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + + assert(float.alignof >= 4); + assert(float.alignof <= double.alignof); + assert(float.alignof >= float.sizeof); + assert(float.alignof == f.alignof); + assert(float.alignof == (4.2f).alignof); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_04.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.infinity > float.max); + assert(float.infinity == f.infinity); + assert(float.infinity == (4.2f).infinity); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_05.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert( float.dig > 5 ); + assert( float.dig < double.dig ); + assert( float.dig == f.dig ); + assert( float.dig == (2.4f).dig ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_06.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.epsilon > 0); + assert(float.epsilon < 0.00001); + assert(float.epsilon > double.epsilon); + assert(float.epsilon == f.epsilon); + assert(float.epsilon == (4.2f).epsilon); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_07.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.mant_dig >= 8); + assert(float.mant_dig < double.mant_dig); + assert(float.mant_dig == f.mant_dig); + assert(float.mant_dig == (2.4f).mant_dig); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_08.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.max_10_exp >= 20); + assert(float.max_10_exp < double.max_10_exp); + assert(float.max_10_exp == f.max_10_exp); + assert(float.max_10_exp == (2.4f).max_10_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_09.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.max_exp > float.max_10_exp); + assert(float.max_exp < double.max_exp); + assert(float.max_exp == f.max_exp); + assert(float.max_exp == (2.4f).max_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_10.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.min_10_exp <= -20); + assert(float.min_10_exp > double.min_10_exp); + assert(float.min_10_exp == f.min_10_exp); + assert(float.min_10_exp == (2.4f).min_10_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_11.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_11.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.min_exp < float.min_10_exp); + assert(float.min_exp > double.min_exp); + assert(float.min_exp == f.min_exp); + assert(float.min_exp == (4.2f).min_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_12.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.max > 0xFFFFFFF); + assert(float.max < double.max); + assert(float.max < float.infinity); + assert(float.max == f.max); + assert(float.max == (2.4f).max); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/float_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/float_13.d,v 1.1 2004/08/23 18:28:08 th Exp $ + +int main(){ + float f; + assert(float.min < 0.0000001); + assert(float.min > double.min); + assert(float.min == f.min); + assert(float.min == (4.2f).min); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/for_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/for_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/for_01.d,v 1.1 2004/08/21 22:24:06 th Exp $ + +int main(){ + int status; + + assert(status==0); + for(int index=0; index<10; index++){ + status++; + } + assert(status==10); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/for_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/for_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/for_02.d,v 1.2 2004/09/22 23:25:38 th Exp $ + +// @author@ Mike Swieton +// @date@ 2004-05-27 +// @uri@ news://pan.2004.05.27.03.36.49.673273@swieton.net + +int main(){ + int status=1; + assert(status==1); + for(;;){ + status++; + if(status==3){ + break; + } + } + assert(status==3); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/foreach_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_01.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +int main(){ + int array[10]; + int test; + assert(test==0); + foreach(int value; array){ + test++; + } + assert(test==10); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_02.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +int main(){ + int array[10]; + foreach(int value; array){} + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_03.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +int main(){ + int array[10]; + foreach(int value; array){} + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_04.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +int main(){ + int array[3]; + array[0]=0; + array[1]=2; + array[2]=4; + int count=0; + assert(count==0); + foreach(int index, int value; array){ + assert(index*2==value); + count++; + } + assert(count==3); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_05.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +class MyClass{ + int value; +} + +int main(){ + MyClass array[3]; + array[0]=new MyClass(); array[0].value=3; + array[1]=new MyClass(); array[1].value=6; + array[2]=new MyClass(); array[2].value=9; + int count=0; + assert(count==0); + foreach(int index, MyClass obj; array){ + assert((index+1)*3==obj.value); + count++; + } + assert(count==3); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_06.d,v 1.1 2004/09/21 21:04:47 th Exp $ + + +int main(){ + char[] array="\xE2\x89\xA0"; + int count=0; + assert(count==0); + foreach(int index, dchar obj; array){ + assert(index==0); + assert(obj==0x2260); + count++; + } + assert(count==1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_07.d,v 1.1 2004/09/21 21:04:47 th Exp $ + + +int main(){ + dchar[] array="\u2260"; + int test=0; + int count=0; + assert(count==0); + foreach(int index, char obj; array){ + test+=obj; + count++; + } + assert(count==3); + assert(test==0x20b); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_08.d,v 1.1 2004/09/21 21:04:47 th Exp $ + + +int main(){ + double[dchar[]] array; + array["eins"]= 1.0; + array["drei"]= 3.0; + double test=0.0; + int count=0; + assert(count==0); + foreach(dchar[] index, double obj; array){ + test+=obj; + count++; + } + assert(count==2); + assert(test==4.0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_09.d,v 1.1 2004/09/21 21:04:47 th Exp $ + + +int main(){ + double[dchar[]] array; + array["eins"]= 1.0; + array["drei"]= 3.0; + double test=0.0; + int count=0; + assert(count==0); + foreach(double obj; array){ + test+=obj; + count++; + } + assert(count==2); + assert(test==4.0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,33 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_10.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +class MyArray{ + double[] array; + + this(){ + array=new double[3]; + array[0]=0.0; + array[1]=4.0; + array[2]=8.0; + } + + int opApply(int delegate(inout double) dg){ + double result; + for(int i=0; i-1){ + continue; + } + assert(0); + } + assert(count==3); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_12.d,v 1.1 2004/09/21 21:04:47 th Exp $ + + +int main(){ + char[] array="abc"; + int count=0; + assert(count==0); + foreach(char value; array){ + count++; + if(value=='b'){ + break; + } + } + assert(count==2); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/foreach_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_13.d,v 1.2 2004/09/22 23:25:38 th Exp $ + + +int main(){ + char[] array="abc"; + int count=0; + assert(count==0); + assert(array[0]=='a'); + assert(array[1]=='b'); + assert(array[2]=='c'); + foreach(inout char value; array){ + count++; + value++; + } + assert(count==3); + assert(array[0]=='b'); + assert(array[1]=='c'); + assert(array[2]=='d'); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/foreach_15.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/foreach_15.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,23 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/foreach_15.d,v 1.1 2004/09/23 09:39:55 th Exp $ + + +int main(){ + char[3] array; + array[0]='a'; + array[1]='b'; + array[2]='c'; + int count=0; + assert(count==0); + assert(array[0]=='a'); + assert(array[1]=='b'); + assert(array[2]=='c'); + foreach(inout char value; array){ + count++; + value++; + } + assert(count==3); + assert(array[0]=='b'); + assert(array[1]=='c'); + assert(array[2]=='d'); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/function_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/function_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +void test(){ + int function (int i) x = function int (int i){ return i++;}; + int function (int i) y = function int (int i){ return i--;}; +} + +int main(){ + test(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/goto_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/goto_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/goto_01.d,v 1.1 2004/09/22 07:39:36 th Exp $ + +// @author@ Stephan Wienczny +// @data@ 2004-09-20 + +int main(){ + goto start; + assert(0); +start: + return 0; +} diff -r 000000000000 -r 3269e4627918 run/if_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/if_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/if_01.d,v 1.1 2004/09/21 21:04:47 th Exp $ + +int main(){ + if(true) + return 0; + assert(0); + return -1; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/if_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/if_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/if_02.d,v 1.1 2004/09/21 21:04:48 th Exp $ + +int main(){ + if(false) + assert(0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/if_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/if_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/if_03.d,v 1.1 2004/09/21 21:04:48 th Exp $ + +int main(){ + if(false){ + }else{ + return 0; + } + assert(0); + return -1; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/if_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/if_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/if_04.d,v 1.1 2004/09/21 21:04:48 th Exp $ + +int main(){ + int value=6; + if(value<0){ + assert(0); + }else if(value>3){ + return 0; + }else{ + assert(0); + } + return -1; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/if_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/if_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,2056 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/if_05.d,v 1.1 2004/09/21 21:04:48 th Exp $ + +int main(){ +int value=1025; + if(value>0){ + if(value>1){ + if(value>2){ + if(value>3){ + if(value>4){ + if(value>5){ + if(value>6){ + if(value>7){ + if(value>8){ + if(value>9){ + if(value>10){ + if(value>11){ + if(value>12){ + if(value>13){ + if(value>14){ + if(value>15){ + if(value>16){ + if(value>17){ + if(value>18){ + if(value>19){ + if(value>20){ + if(value>21){ + if(value>22){ + if(value>23){ + if(value>24){ + if(value>25){ + if(value>26){ + if(value>27){ + if(value>28){ + if(value>29){ + if(value>30){ + if(value>31){ + if(value>32){ + if(value>33){ + if(value>34){ + if(value>35){ + if(value>36){ + if(value>37){ + if(value>38){ + if(value>39){ + if(value>40){ + if(value>41){ + if(value>42){ + if(value>43){ + if(value>44){ + if(value>45){ + if(value>46){ + if(value>47){ + if(value>48){ + if(value>49){ + if(value>50){ + if(value>51){ + if(value>52){ + if(value>53){ + if(value>54){ + if(value>55){ + if(value>56){ + if(value>57){ + if(value>58){ + if(value>59){ + if(value>60){ + if(value>61){ + if(value>62){ + if(value>63){ + if(value>64){ + if(value>65){ + if(value>66){ + if(value>67){ + if(value>68){ + if(value>69){ + if(value>70){ + if(value>71){ + if(value>72){ + if(value>73){ + if(value>74){ + if(value>75){ + if(value>76){ + if(value>77){ + if(value>78){ + if(value>79){ + if(value>80){ + if(value>81){ + if(value>82){ + if(value>83){ + if(value>84){ + if(value>85){ + if(value>86){ + if(value>87){ + if(value>88){ + if(value>89){ + if(value>90){ + if(value>91){ + if(value>92){ + if(value>93){ + if(value>94){ + if(value>95){ + if(value>96){ + if(value>97){ + if(value>98){ + if(value>99){ + if(value>100){ + if(value>101){ + if(value>102){ + if(value>103){ + if(value>104){ + if(value>105){ + if(value>106){ + if(value>107){ + if(value>108){ + if(value>109){ + if(value>110){ + if(value>111){ + if(value>112){ + if(value>113){ + if(value>114){ + if(value>115){ + if(value>116){ + if(value>117){ + if(value>118){ + if(value>119){ + if(value>120){ + if(value>121){ + if(value>122){ + if(value>123){ + if(value>124){ + if(value>125){ + if(value>126){ + if(value>127){ + if(value>128){ + if(value>129){ + if(value>130){ + if(value>131){ + if(value>132){ + if(value>133){ + if(value>134){ + if(value>135){ + if(value>136){ + if(value>137){ + if(value>138){ + if(value>139){ + if(value>140){ + if(value>141){ + if(value>142){ + if(value>143){ + if(value>144){ + if(value>145){ + if(value>146){ + if(value>147){ + if(value>148){ + if(value>149){ + if(value>150){ + if(value>151){ + if(value>152){ + if(value>153){ + if(value>154){ + if(value>155){ + if(value>156){ + if(value>157){ + if(value>158){ + if(value>159){ + if(value>160){ + if(value>161){ + if(value>162){ + if(value>163){ + if(value>164){ + if(value>165){ + if(value>166){ + if(value>167){ + if(value>168){ + if(value>169){ + if(value>170){ + if(value>171){ + if(value>172){ + if(value>173){ + if(value>174){ + if(value>175){ + if(value>176){ + if(value>177){ + if(value>178){ + if(value>179){ + if(value>180){ + if(value>181){ + if(value>182){ + if(value>183){ + if(value>184){ + if(value>185){ + if(value>186){ + if(value>187){ + if(value>188){ + if(value>189){ + if(value>190){ + if(value>191){ + if(value>192){ + if(value>193){ + if(value>194){ + if(value>195){ + if(value>196){ + if(value>197){ + if(value>198){ + if(value>199){ + if(value>200){ + if(value>201){ + if(value>202){ + if(value>203){ + if(value>204){ + if(value>205){ + if(value>206){ + if(value>207){ + if(value>208){ + if(value>209){ + if(value>210){ + if(value>211){ + if(value>212){ + if(value>213){ + if(value>214){ + if(value>215){ + if(value>216){ + if(value>217){ + if(value>218){ + if(value>219){ + if(value>220){ + if(value>221){ + if(value>222){ + if(value>223){ + if(value>224){ + if(value>225){ + if(value>226){ + if(value>227){ + if(value>228){ + if(value>229){ + if(value>230){ + if(value>231){ + if(value>232){ + if(value>233){ + if(value>234){ + if(value>235){ + if(value>236){ + if(value>237){ + if(value>238){ + if(value>239){ + if(value>240){ + if(value>241){ + if(value>242){ + if(value>243){ + if(value>244){ + if(value>245){ + if(value>246){ + if(value>247){ + if(value>248){ + if(value>249){ + if(value>250){ + if(value>251){ + if(value>252){ + if(value>253){ + if(value>254){ + if(value>255){ + if(value>256){ + if(value>257){ + if(value>258){ + if(value>259){ + if(value>260){ + if(value>261){ + if(value>262){ + if(value>263){ + if(value>264){ + if(value>265){ + if(value>266){ + if(value>267){ + if(value>268){ + if(value>269){ + if(value>270){ + if(value>271){ + if(value>272){ + if(value>273){ + if(value>274){ + if(value>275){ + if(value>276){ + if(value>277){ + if(value>278){ + if(value>279){ + if(value>280){ + if(value>281){ + if(value>282){ + if(value>283){ + if(value>284){ + if(value>285){ + if(value>286){ + if(value>287){ + if(value>288){ + if(value>289){ + if(value>290){ + if(value>291){ + if(value>292){ + if(value>293){ + if(value>294){ + if(value>295){ + if(value>296){ + if(value>297){ + if(value>298){ + if(value>299){ + if(value>300){ + if(value>301){ + if(value>302){ + if(value>303){ + if(value>304){ + if(value>305){ + if(value>306){ + if(value>307){ + if(value>308){ + if(value>309){ + if(value>310){ + if(value>311){ + if(value>312){ + if(value>313){ + if(value>314){ + if(value>315){ + if(value>316){ + if(value>317){ + if(value>318){ + if(value>319){ + if(value>320){ + if(value>321){ + if(value>322){ + if(value>323){ + if(value>324){ + if(value>325){ + if(value>326){ + if(value>327){ + if(value>328){ + if(value>329){ + if(value>330){ + if(value>331){ + if(value>332){ + if(value>333){ + if(value>334){ + if(value>335){ + if(value>336){ + if(value>337){ + if(value>338){ + if(value>339){ + if(value>340){ + if(value>341){ + if(value>342){ + if(value>343){ + if(value>344){ + if(value>345){ + if(value>346){ + if(value>347){ + if(value>348){ + if(value>349){ + if(value>350){ + if(value>351){ + if(value>352){ + if(value>353){ + if(value>354){ + if(value>355){ + if(value>356){ + if(value>357){ + if(value>358){ + if(value>359){ + if(value>360){ + if(value>361){ + if(value>362){ + if(value>363){ + if(value>364){ + if(value>365){ + if(value>366){ + if(value>367){ + if(value>368){ + if(value>369){ + if(value>370){ + if(value>371){ + if(value>372){ + if(value>373){ + if(value>374){ + if(value>375){ + if(value>376){ + if(value>377){ + if(value>378){ + if(value>379){ + if(value>380){ + if(value>381){ + if(value>382){ + if(value>383){ + if(value>384){ + if(value>385){ + if(value>386){ + if(value>387){ + if(value>388){ + if(value>389){ + if(value>390){ + if(value>391){ + if(value>392){ + if(value>393){ + if(value>394){ + if(value>395){ + if(value>396){ + if(value>397){ + if(value>398){ + if(value>399){ + if(value>400){ + if(value>401){ + if(value>402){ + if(value>403){ + if(value>404){ + if(value>405){ + if(value>406){ + if(value>407){ + if(value>408){ + if(value>409){ + if(value>410){ + if(value>411){ + if(value>412){ + if(value>413){ + if(value>414){ + if(value>415){ + if(value>416){ + if(value>417){ + if(value>418){ + if(value>419){ + if(value>420){ + if(value>421){ + if(value>422){ + if(value>423){ + if(value>424){ + if(value>425){ + if(value>426){ + if(value>427){ + if(value>428){ + if(value>429){ + if(value>430){ + if(value>431){ + if(value>432){ + if(value>433){ + if(value>434){ + if(value>435){ + if(value>436){ + if(value>437){ + if(value>438){ + if(value>439){ + if(value>440){ + if(value>441){ + if(value>442){ + if(value>443){ + if(value>444){ + if(value>445){ + if(value>446){ + if(value>447){ + if(value>448){ + if(value>449){ + if(value>450){ + if(value>451){ + if(value>452){ + if(value>453){ + if(value>454){ + if(value>455){ + if(value>456){ + if(value>457){ + if(value>458){ + if(value>459){ + if(value>460){ + if(value>461){ + if(value>462){ + if(value>463){ + if(value>464){ + if(value>465){ + if(value>466){ + if(value>467){ + if(value>468){ + if(value>469){ + if(value>470){ + if(value>471){ + if(value>472){ + if(value>473){ + if(value>474){ + if(value>475){ + if(value>476){ + if(value>477){ + if(value>478){ + if(value>479){ + if(value>480){ + if(value>481){ + if(value>482){ + if(value>483){ + if(value>484){ + if(value>485){ + if(value>486){ + if(value>487){ + if(value>488){ + if(value>489){ + if(value>490){ + if(value>491){ + if(value>492){ + if(value>493){ + if(value>494){ + if(value>495){ + if(value>496){ + if(value>497){ + if(value>498){ + if(value>499){ + if(value>500){ + if(value>501){ + if(value>502){ + if(value>503){ + if(value>504){ + if(value>505){ + if(value>506){ + if(value>507){ + if(value>508){ + if(value>509){ + if(value>510){ + if(value>511){ + if(value>512){ + if(value>513){ + if(value>514){ + if(value>515){ + if(value>516){ + if(value>517){ + if(value>518){ + if(value>519){ + if(value>520){ + if(value>521){ + if(value>522){ + if(value>523){ + if(value>524){ + if(value>525){ + if(value>526){ + if(value>527){ + if(value>528){ + if(value>529){ + if(value>530){ + if(value>531){ + if(value>532){ + if(value>533){ + if(value>534){ + if(value>535){ + if(value>536){ + if(value>537){ + if(value>538){ + if(value>539){ + if(value>540){ + if(value>541){ + if(value>542){ + if(value>543){ + if(value>544){ + if(value>545){ + if(value>546){ + if(value>547){ + if(value>548){ + if(value>549){ + if(value>550){ + if(value>551){ + if(value>552){ + if(value>553){ + if(value>554){ + if(value>555){ + if(value>556){ + if(value>557){ + if(value>558){ + if(value>559){ + if(value>560){ + if(value>561){ + if(value>562){ + if(value>563){ + if(value>564){ + if(value>565){ + if(value>566){ + if(value>567){ + if(value>568){ + if(value>569){ + if(value>570){ + if(value>571){ + if(value>572){ + if(value>573){ + if(value>574){ + if(value>575){ + if(value>576){ + if(value>577){ + if(value>578){ + if(value>579){ + if(value>580){ + if(value>581){ + if(value>582){ + if(value>583){ + if(value>584){ + if(value>585){ + if(value>586){ + if(value>587){ + if(value>588){ + if(value>589){ + if(value>590){ + if(value>591){ + if(value>592){ + if(value>593){ + if(value>594){ + if(value>595){ + if(value>596){ + if(value>597){ + if(value>598){ + if(value>599){ + if(value>600){ + if(value>601){ + if(value>602){ + if(value>603){ + if(value>604){ + if(value>605){ + if(value>606){ + if(value>607){ + if(value>608){ + if(value>609){ + if(value>610){ + if(value>611){ + if(value>612){ + if(value>613){ + if(value>614){ + if(value>615){ + if(value>616){ + if(value>617){ + if(value>618){ + if(value>619){ + if(value>620){ + if(value>621){ + if(value>622){ + if(value>623){ + if(value>624){ + if(value>625){ + if(value>626){ + if(value>627){ + if(value>628){ + if(value>629){ + if(value>630){ + if(value>631){ + if(value>632){ + if(value>633){ + if(value>634){ + if(value>635){ + if(value>636){ + if(value>637){ + if(value>638){ + if(value>639){ + if(value>640){ + if(value>641){ + if(value>642){ + if(value>643){ + if(value>644){ + if(value>645){ + if(value>646){ + if(value>647){ + if(value>648){ + if(value>649){ + if(value>650){ + if(value>651){ + if(value>652){ + if(value>653){ + if(value>654){ + if(value>655){ + if(value>656){ + if(value>657){ + if(value>658){ + if(value>659){ + if(value>660){ + if(value>661){ + if(value>662){ + if(value>663){ + if(value>664){ + if(value>665){ + if(value>666){ + if(value>667){ + if(value>668){ + if(value>669){ + if(value>670){ + if(value>671){ + if(value>672){ + if(value>673){ + if(value>674){ + if(value>675){ + if(value>676){ + if(value>677){ + if(value>678){ + if(value>679){ + if(value>680){ + if(value>681){ + if(value>682){ + if(value>683){ + if(value>684){ + if(value>685){ + if(value>686){ + if(value>687){ + if(value>688){ + if(value>689){ + if(value>690){ + if(value>691){ + if(value>692){ + if(value>693){ + if(value>694){ + if(value>695){ + if(value>696){ + if(value>697){ + if(value>698){ + if(value>699){ + if(value>700){ + if(value>701){ + if(value>702){ + if(value>703){ + if(value>704){ + if(value>705){ + if(value>706){ + if(value>707){ + if(value>708){ + if(value>709){ + if(value>710){ + if(value>711){ + if(value>712){ + if(value>713){ + if(value>714){ + if(value>715){ + if(value>716){ + if(value>717){ + if(value>718){ + if(value>719){ + if(value>720){ + if(value>721){ + if(value>722){ + if(value>723){ + if(value>724){ + if(value>725){ + if(value>726){ + if(value>727){ + if(value>728){ + if(value>729){ + if(value>730){ + if(value>731){ + if(value>732){ + if(value>733){ + if(value>734){ + if(value>735){ + if(value>736){ + if(value>737){ + if(value>738){ + if(value>739){ + if(value>740){ + if(value>741){ + if(value>742){ + if(value>743){ + if(value>744){ + if(value>745){ + if(value>746){ + if(value>747){ + if(value>748){ + if(value>749){ + if(value>750){ + if(value>751){ + if(value>752){ + if(value>753){ + if(value>754){ + if(value>755){ + if(value>756){ + if(value>757){ + if(value>758){ + if(value>759){ + if(value>760){ + if(value>761){ + if(value>762){ + if(value>763){ + if(value>764){ + if(value>765){ + if(value>766){ + if(value>767){ + if(value>768){ + if(value>769){ + if(value>770){ + if(value>771){ + if(value>772){ + if(value>773){ + if(value>774){ + if(value>775){ + if(value>776){ + if(value>777){ + if(value>778){ + if(value>779){ + if(value>780){ + if(value>781){ + if(value>782){ + if(value>783){ + if(value>784){ + if(value>785){ + if(value>786){ + if(value>787){ + if(value>788){ + if(value>789){ + if(value>790){ + if(value>791){ + if(value>792){ + if(value>793){ + if(value>794){ + if(value>795){ + if(value>796){ + if(value>797){ + if(value>798){ + if(value>799){ + if(value>800){ + if(value>801){ + if(value>802){ + if(value>803){ + if(value>804){ + if(value>805){ + if(value>806){ + if(value>807){ + if(value>808){ + if(value>809){ + if(value>810){ + if(value>811){ + if(value>812){ + if(value>813){ + if(value>814){ + if(value>815){ + if(value>816){ + if(value>817){ + if(value>818){ + if(value>819){ + if(value>820){ + if(value>821){ + if(value>822){ + if(value>823){ + if(value>824){ + if(value>825){ + if(value>826){ + if(value>827){ + if(value>828){ + if(value>829){ + if(value>830){ + if(value>831){ + if(value>832){ + if(value>833){ + if(value>834){ + if(value>835){ + if(value>836){ + if(value>837){ + if(value>838){ + if(value>839){ + if(value>840){ + if(value>841){ + if(value>842){ + if(value>843){ + if(value>844){ + if(value>845){ + if(value>846){ + if(value>847){ + if(value>848){ + if(value>849){ + if(value>850){ + if(value>851){ + if(value>852){ + if(value>853){ + if(value>854){ + if(value>855){ + if(value>856){ + if(value>857){ + if(value>858){ + if(value>859){ + if(value>860){ + if(value>861){ + if(value>862){ + if(value>863){ + if(value>864){ + if(value>865){ + if(value>866){ + if(value>867){ + if(value>868){ + if(value>869){ + if(value>870){ + if(value>871){ + if(value>872){ + if(value>873){ + if(value>874){ + if(value>875){ + if(value>876){ + if(value>877){ + if(value>878){ + if(value>879){ + if(value>880){ + if(value>881){ + if(value>882){ + if(value>883){ + if(value>884){ + if(value>885){ + if(value>886){ + if(value>887){ + if(value>888){ + if(value>889){ + if(value>890){ + if(value>891){ + if(value>892){ + if(value>893){ + if(value>894){ + if(value>895){ + if(value>896){ + if(value>897){ + if(value>898){ + if(value>899){ + if(value>900){ + if(value>901){ + if(value>902){ + if(value>903){ + if(value>904){ + if(value>905){ + if(value>906){ + if(value>907){ + if(value>908){ + if(value>909){ + if(value>910){ + if(value>911){ + if(value>912){ + if(value>913){ + if(value>914){ + if(value>915){ + if(value>916){ + if(value>917){ + if(value>918){ + if(value>919){ + if(value>920){ + if(value>921){ + if(value>922){ + if(value>923){ + if(value>924){ + if(value>925){ + if(value>926){ + if(value>927){ + if(value>928){ + if(value>929){ + if(value>930){ + if(value>931){ + if(value>932){ + if(value>933){ + if(value>934){ + if(value>935){ + if(value>936){ + if(value>937){ + if(value>938){ + if(value>939){ + if(value>940){ + if(value>941){ + if(value>942){ + if(value>943){ + if(value>944){ + if(value>945){ + if(value>946){ + if(value>947){ + if(value>948){ + if(value>949){ + if(value>950){ + if(value>951){ + if(value>952){ + if(value>953){ + if(value>954){ + if(value>955){ + if(value>956){ + if(value>957){ + if(value>958){ + if(value>959){ + if(value>960){ + if(value>961){ + if(value>962){ + if(value>963){ + if(value>964){ + if(value>965){ + if(value>966){ + if(value>967){ + if(value>968){ + if(value>969){ + if(value>970){ + if(value>971){ + if(value>972){ + if(value>973){ + if(value>974){ + if(value>975){ + if(value>976){ + if(value>977){ + if(value>978){ + if(value>979){ + if(value>980){ + if(value>981){ + if(value>982){ + if(value>983){ + if(value>984){ + if(value>985){ + if(value>986){ + if(value>987){ + if(value>988){ + if(value>989){ + if(value>990){ + if(value>991){ + if(value>992){ + if(value>993){ + if(value>994){ + if(value>995){ + if(value>996){ + if(value>997){ + if(value>998){ + if(value>999){ + if(value>1000){ + if(value>1001){ + if(value>1002){ + if(value>1003){ + if(value>1004){ + if(value>1005){ + if(value>1006){ + if(value>1007){ + if(value>1008){ + if(value>1009){ + if(value>1010){ + if(value>1011){ + if(value>1012){ + if(value>1013){ + if(value>1014){ + if(value>1015){ + if(value>1016){ + if(value>1017){ + if(value>1018){ + if(value>1019){ + if(value>1020){ + if(value>1021){ + if(value>1022){ + if(value>1023){ + return 0; + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} + }else{assert(0);} +assert(0); +return -1; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/if_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/if_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/if_06.d,v 1.1 2004/09/22 07:39:36 th Exp $ + +// @author@ Burton Radons +// @date@ 2004-09-19 + +int main(){ + int x=1; + assert(x==1); + if(x) + version(none) + x++; + assert(x==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/in_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/in_01.d,v 1.2 2004/08/23 20:38:17 th Exp $ + +void check(in int a){ + assert(a==0); + a++; + assert(a==1); +} + +int main(){ + int i; + assert(i==0); + check(i); + assert(i==0); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/in_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/in_02.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +struct MyStruct{ + int x; +} + +void check(in MyStruct s){ + assert(s.x==1); + s.x++; + assert(s.x==2); +} + +int main(){ + MyStruct s; + s.x=1; + assert(s.x==1); + check(s); + assert(s.x==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/in_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/in_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/in_03.d,v 1.2 2004/09/23 07:38:07 th Exp $ + +class MyClass{ + int x; +} + +void check(in MyClass c){ + c=new MyClass(); + c.x=2; +} + +int main(){ + MyClass c = new MyClass(); + c.x=1; + assert(c.x==1); + check(c); + assert(c.x==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/int_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/int_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/int_01.d,v 1.2 2004/08/21 20:44:50 th Exp $ + +int main(){ + int a; + + assert(a.init == 0); + assert(int.init == 0); + assert(a == 0); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/int_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/int_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/int_02.d,v 1.1 2004/08/21 20:44:50 th Exp $ + +int main(){ + int i; + + assert( i.sizeof == 4 ); + assert( int.sizeof == 4 ); + assert( typeid( int ).tsize() == 4); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/int_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/int_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/int_03.d,v 1.1 2004/08/21 20:44:50 th Exp $ + +int main(){ + int i; + + assert( i.alignof >= i.sizeof ); + assert( int.alignof >= i.sizeof ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/int_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/int_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/int_04.d,v 1.3 2004/08/21 21:38:30 th Exp $ + +int main(){ + int i; + + assert( i.max == 2147483647); + assert( int.max == 2147483647); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/int_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/int_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/int_07.d,v 1.1 2004/08/21 21:38:30 th Exp $ + +int main(){ + int i; + assert( i.min == -2147483648); + assert( int.min == -2147483648); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/interface_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/interface_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,21 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/interface_01.d,v 1.1 2004/08/22 07:47:07 th Exp $ + +int status; + +interface MyInterface{ + void check(); +} + +class MyClass : MyInterface { + void check(){ + status=2; + } +} + +int main(){ + MyInterface i = new MyClass(); + assert(status==0); + i.check(); + assert(status==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/interface_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/interface_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,43 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/interface_02.d,v 1.1 2004/08/22 07:47:07 th Exp $ + +// @author@ van eeshan +// @date@ 2004-08-05 +// @uri@ news://ces67k$rgj$1@digitaldaemon.com + +int status; + +interface Interface1{ + void one(); +} + +interface Interface2{ + void two(); +} + +interface Interface3 : Interface1, Interface2{ + void three(); +} + +class MyClass : Interface3{ + void one(){ + status=1; + } + void two(){ + status=20; + } + void three(){ + status=300; + } +} + +int main(){ + Interface3 i = new MyClass(); + assert(status==0); + i.one(); + assert(status==1); + i.two(); + assert(status==20); + i.three(); + assert(status==300); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/interface_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/interface_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,43 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/interface_04.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +// @author@ van eeshan +// @date@ 2004-08-05 +// @uri@ news://ces67k$rgj$1@digitaldaemon.com + +int status; + +interface Interface1{ + void one(); +} + +interface Interface2{ + void two(); +} + +interface Interface3 : Interface2, Interface1{ + void three(); +} + +class MyClass : Interface3{ + void one(){ + status=1; + } + void two(){ + status=20; + } + void three(){ + status=300; + } +} + +int main(){ + Interface3 i = new MyClass(); + assert(status==0); + i.one(); + assert(status==1); + i.two(); + assert(status==20); + i.three(); + assert(status==300); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/length_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/length_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/length_01.d,v 1.2 2004/09/22 23:25:38 th Exp $ + +int main(){ + byte[3] array; + array[0]=2; + array[1]=4; + array[2]=8; + int length=1; + assert(length-1==0); + assert(array[length-1]==8); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/long_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/long_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/long_01.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int main(){ + long a; + assert(a.max == 0x7FFFFFFF); + assert(a.min == 0xFFFFFFFF); + assert(a.init == 0); + assert(a.sizeof == 4); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/main_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/main_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,5 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/main_02.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int main() { + return 0; +} diff -r 000000000000 -r 3269e4627918 run/main_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/main_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,5 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/main_03.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int main(char[][] args){ + return 0; +} diff -r 000000000000 -r 3269e4627918 run/mixin_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/mixin_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,24 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/mixin_02.d,v 1.1 2004/09/23 05:46:50 th Exp $ + +// @author@ Roel Mathys +// @date@ 2004-05-18 + +interface MyInterface{ + int test(); +} + +template MyTemplate(){ + int test(){ + return 1; + } +} + +class MyClass : MyInterface{ + mixin MyTemplate; +} + +int main(){ + MyClass c = new MyClass(); + assert(c.test()==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/mixin_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/mixin_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/mixin_03.d,v 1.1 2004/09/23 05:56:47 th Exp $ + +// @author@ Ivan Senji +// @date@ 2004-05-20 + +template Point(){ + real x, y; +} + +class DoublePoint{ + mixin Point A; + mixin Point B; +} + +int main(){ + DoublePoint object = new DoublePoint(); + object.A.x = 2; + assert(object.A.x == 2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/odd_bug_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/odd_bug_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/odd_bug_01.d,v 1.2 2004/08/23 18:28:08 th Exp $ + +// @author@ Paul Runde +// @date@ 2004-06-02 +// @uri@ news://c9jcpq$1fu$1@digitaldaemon.com + +int[2] x = 3; +float y = 0.0f; + +int main(){ + assert(x[0]==3); + assert(x[1]==3); + y = -100; + assert(x[0]==3); + assert(x[1]==3); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opCast_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opCast_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opCast_01.d,v 1.1 2004/09/23 00:11:54 th Exp $ + +// @author@ Carlos Santander B. +// @author@ 2004-09-18 + +class Parent{ + void test(int i){ + } +} + +class Child : Parent{ + int opCast(){ + return 0; + } +} + +int main(){ + (new Child).test=2; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opCast_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opCast_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,21 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opCast_02.d,v 1.1 2004/09/23 00:11:54 th Exp $ + +// @author@ Carlos Santander B. +// @author@ 2004-09-18 + +class Parent{ + void test(int i){ + } + + int opCast(){ + return 0; + } +} + +class Child : Parent{ +} + +int main(){ + (new Child).test=2; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opCatAssign_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opCatAssign_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opCatAssign_01.d,v 1.2 2004/09/23 04:40:47 th Exp $ + +int main(){ + char[] string; + string ~= "abc"; + assert(string.length==3); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opCmp_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opCmp_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opCmp_01.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +// @author@ k2 +// @date@ 2004-08-04 +// @uri@ news://ceq9g7$25mj$1@digitaldaemon.com + +struct MyStruct{ + int opCmp(MyStruct m){ + return 0; + } +} + +int main(){ + MyStruct[] s; + s.sort; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opNeg_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opNeg_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opNeg_01.d,v 1.2 2004/09/22 23:48:32 th Exp $ + +class MyClass{ + int status; + + void opNeg(){ + status+=9; + } +} + +int main(){ + MyClass c = new MyClass(); + assert(c.status==0); + -c; + assert(c.status==9); + -c; + assert(c.status==18); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opNeg_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opNeg_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opNeg_02.d,v 1.2 2004/09/22 23:48:32 th Exp $ + +struct MyStruct{ + int status; + void opNeg(){ + status+=3; + } +} + +int main(){ + MyStruct s; + assert(s.status==0); + -s; + assert(s.status==3); + -s; + assert(s.status==6); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opPos_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opPos_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opPos_01.d,v 1.1 2004/09/21 21:04:48 th Exp $ + +class MyClass{ + int status; + void opPos(){ + status+=3; + } +} + +int main(){ + MyClass c = new MyClass(); + assert(c.status==0); + +c; + assert(c.status==3); + +c; + assert(c.status==6); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/opPos_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opPos_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/opPos_02.d,v 1.1 2004/09/21 21:04:48 th Exp $ + +struct MyStruct{ + int status; + void opPos(){ + status+=3; + } +} + +int main(){ + MyStruct s; + assert(s.status==0); + +s; + assert(s.status==3); + +s; + assert(s.status==6); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/out_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/out_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_01.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +void check(out int x){ +} + +int main(){ + int y=2; + assert(y==2); + check(y); + assert(y==0); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/out_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/out_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_02.d,v 1.2 2004/08/23 20:38:17 th Exp $ + +void check(out int i){ + assert(i==0); + i=2; +} + +int main(){ + int i=1; + assert(i==1); + check(i); + assert(i==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/out_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/out_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_03.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +struct MyStruct{ + int x=2; +} + +void check(out MyStruct s){ + assert(s.x==2); + s.x++; +} + +int main(){ + MyStruct s; + s.x=1; + assert(s.x==1); + check(s); + assert(s.x==3); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/out_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/out_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_04.d,v 1.1 2004/08/23 17:18:35 th Exp $ + +struct MyStruct{ + int x=2; +} + +void check(out MyStruct s){ +} + +int main(){ + MyStruct s; + s.x=1; + assert(s.x==1); + check(s); + assert(s.x==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/out_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/out_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_05.d,v 1.2 2004/09/23 11:16:54 th Exp $ + +int status; + +class MyClass{ + int x=2; +} + +void check(out MyClass c){ + assert(c==null); +} + +int main(){ + MyClass c = new MyClass(); + assert(c!=null); + check(c); + assert(c==null); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/out_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/out_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/out_06.d,v 1.2 2004/09/23 11:16:54 th Exp $ + +int status; + +class MyClass{ + int x=2; +} + +void check(out MyClass c){ + c = new MyClass(); +} + +int main(){ + MyClass c = new MyClass(); + c.x=1; + assert(c.x==1); + check(c); + assert(c.x==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/overload_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,32 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_01.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int status; + +class MyClass{ + void check( byte b){ + status+=b; + } + void check( short s ){ + status-=s; + } + void check( int i ){ + status+= i*2; + } +} + +int main(){ + MyClass c = new MyClass(); + + byte b = 2; + short s = 3; + int i = 4; + + assert(status == 0); + c.check(b); + assert(status == 2); + c.check(s); + assert(status == -1); + c.check(i); + assert(status == 7 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/overload_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,33 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_02.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int status; + +struct MyStruct{ + void check( byte b){ + status+=b; + } + void check( short s ){ + status-=s; + } + void check( int i ){ + status+= i*2; + } +} + +int main(){ + MyStruct S; + + byte b = 2; + short s = 3; + int i = 4; + + assert(status == 0); + S.check(b); + assert(status == 2); + S.check(s); + assert(status == -1); + S.check(i); + assert(status == 7 ); + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/overload_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,32 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_03.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int status; + +void check( byte b){ + status+=b; +} + +void check( short s ){ + status-=s; +} + +void check( int i ){ + status+= i*2; +} + +int main(){ + + byte b = 2; + short s = 3; + int i = 4; + + assert(status == 0); + check(b); + assert(status == 2); + check(s); + assert(status == -1); + check(i); + assert(status == 7 ); + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/overload_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,52 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_04.d,v 1.1 2004/08/20 23:42:53 th Exp $ + +int status; + +class MyClass{ + static void check( byte b){ + status+=b; + } + static void check( short s ){ + status-=s; + } + static void check( int i ){ + status+= i*2; + } +} + +int main(){ + MyClass A = new MyClass(); + MyClass B; + + byte b = 2; + short s = 3; + int i = 4; + + assert(status == 0); + A.check(b); + assert(status == 2); + A.check(s); + assert(status == -1); + A.check(i); + assert(status == 7 ); + + status=0; + assert(status == 0); + B.check(b); + assert(status == 2); + B.check(s); + assert(status == -1); + B.check(i); + assert(status == 7 ); + + status=0; + assert(status == 0); + MyClass.check(b); + assert(status == 2); + MyClass.check(s); + assert(status == -1); + MyClass.check(i); + assert(status == 7 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/overload_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,44 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_05.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int status; + +struct MyStruct{ + static void check( byte b){ + status+=b; + } + static void check( short s ){ + status-=s; + } + static void check( int i ){ + status+= i*2; + } +} + +int main(){ + MyStruct S; + + byte b = 2; + short s = 3; + int i = 4; + + status = 0; + assert(status == 0); + S.check(b); + assert(status == 2); + S.check(s); + assert(status == -1); + S.check(i); + assert(status == 7 ); + + status = 0; + assert(status == 0); + MyStruct.check(b); + assert(status == 2); + MyStruct.check(s); + assert(status == -1); + MyStruct.check(i); + assert(status == 7 ); + + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/overload_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_06.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +// @author@ Sean Kelly +// @date@ 2004-07-28 +// @uri@ news://ce8u1g$ibj$1@digitaldaemon.com + +int main(){ + void foo( int x ){ + assert(0); + } + + void foo( short s ){ + } + + short s=1; + foo( s ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/overload_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/overload_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,32 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/overload_07.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +// @author@ Andy Friesen +// @date@ 2004-04-30 +// @uri@ news://c6s698$2nt$1@digitaldaemon.com + +int status; + +class MyClass{ + void foo(){ + status='N'; + } + + static void foo(int x){ + status=x; + } +} + +int main(){ + MyClass m = new MyClass(); + + MyClass.foo('S'); + assert(status=='S'); + + m.foo('s'); + assert(status=='s'); + + m.foo(); + assert(status=='N'); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/override_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/override_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/override_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +class Parent{ + int check(){ + return 1; + } +} + +class Child : Parent { + override int check(){ + return 2; + } +} + +int main(){ + Child c = new Child(); + assert( c.check() == 2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/pragma_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/pragma_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/pragma_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int main(){ + pragma(msg, "compiling pragma\n"); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/pragma_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/pragma_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,6 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/pragma_02.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int main(){ + pragma(msg, "compiling pragma\n"){} + return 0; +} diff -r 000000000000 -r 3269e4627918 run/pragma_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/pragma_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/pragma_05.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +const char [] check = "compiling pragma"; + +int main(){ + pragma(msg, check); + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/pragma_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/pragma_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/pragma_06.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +const char * check = "compiling pragma"; + +int main(){ + pragma(msg, check); + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/real_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_01.d,v 1.2 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + + assert( real.init !<> real.nan); + assert( r.init !<> real.nan); + assert( r !<> real.nan); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_02.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.sizeof >= float.sizeof); + assert(real.sizeof == r.sizeof); + assert(real.sizeof == typeid(real).tsize()); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_03.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + + assert(real.alignof >= float.alignof); + assert(real.alignof >= real.sizeof); + assert(real.alignof == r.alignof); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_04.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.infinity > real.max); + assert(real.infinity == r.infinity); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_05.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert( real.dig > 9 ); + assert( real.dig >= float.dig ); + assert( real.dig == r.dig ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_06.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.epsilon > 0); + assert(real.epsilon < 0.00001 ); + assert(real.epsilon == r.epsilon); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_07.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.mant_dig>=8); + assert(real.mant_dig >= float.mant_dig); + assert(real.mant_dig == r.mant_dig); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_08.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.max_10_exp>=20); + assert(real.max_10_exp >= float.max_10_exp); + assert(real.max_10_exp == r.max_10_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_09.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_09.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_09.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.max_exp > real.max_10_exp); + assert(real.max_exp >= float.max_exp); + assert(real.max_exp == r.max_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_10.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.min_10_exp <= -20); + assert(real.min_10_exp <= float.min_10_exp); + assert(real.min_10_exp == r.min_10_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_11.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_11.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_11.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.min_exp < real.min_10_exp); + assert(real.min_exp <= float.min_exp); + assert(real.min_exp == r.min_exp); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_12.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.max > 0xFFFFFFF); + assert(real.max > float.max); + assert(real.max < real.infinity); + assert(real.max == r.max); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/real_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/real_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/real_13.d,v 1.1 2004/08/23 19:00:12 th Exp $ + +int main(){ + real r; + assert(real.min < 0.00001); + assert(real.min > 0); + assert(real.min <= float.min); + assert(real.min == r.min); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/scope_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/scope_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,40 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/scope_01.d,v 1.1 2004/08/21 21:38:30 th Exp $ + +// @author@ J Anderson +// @date@ 2004-01-05 +// @uri@ news://c70jk9$off$1@digitaldaemon.com + +int check; + +class MyClass{ + this(){ + status=3; + } + + void call(){ + assert(status==3); + s.test(); + check+=5; + } + + struct MyStruct{ + void test(){ + assert(status==3); + status=4; + check+=3; + } + } + + MyStruct s; + int status; +} + +int main(){ + MyClass c = new MyClass(); + assert(c.status==3); + assert(check==0); + c.call(); + assert(c.status==4); + assert(check==8); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/short_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/short_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/short_01.d,v 1.2 2004/08/21 20:44:50 th Exp $ + +int main(){ + short a; + assert(a.init == 0); + assert(short.init == 0); + assert(a == 0); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/static_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +class MyClass{ + static int check; +} + +int main(){ + MyClass c; + c.check++; + assert( c.check == 1 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/static_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_02.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +class MyClass{ + static int check(){ + return 9; + } +} + +int main(){ + MyClass c; + return c.check() - 9; +} diff -r 000000000000 -r 3269e4627918 run/static_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,47 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_03.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +class MyClass{ + static int status; + static void staticCheck(){ + status++; + } + + void liveCheck(){ + status--; + } + + void liveCheck2(){ + staticCheck(); + } +} + +int main(){ + MyClass a; + MyClass b = new MyClass(); + a.staticCheck(); + assert( a.status == 1 ); + assert( b.status == 1 ); + assert( MyClass.status == 1 ); + + b.staticCheck(); + assert( a.status == 2 ); + assert( b.status == 2 ); + assert( MyClass.status == 2 ); + + MyClass.staticCheck(); + assert( a.status == 3 ); + assert( b.status == 3 ); + assert( MyClass.status == 3 ); + + b.liveCheck(); + assert( a.status == 2 ); + assert( b.status == 2 ); + assert( MyClass.status == 2 ); + + b.liveCheck2(); + assert( a.status == 3 ); + assert( b.status == 3 ); + assert( MyClass.status == 3 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/static_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_04.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +struct MyStruct{ + static int check; +} + +int main(){ + MyStruct s; + + s.check++; + assert( s.check == 1 ); + assert( MyStruct.check == 1 ); + + MyStruct.check++; + assert( s.check == 2 ); + assert( MyStruct.check == 2 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/static_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_05.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +struct MyStruct{ + static int check(){ + return 2; + } +} + +int main(){ + assert( MyStruct.check() == 2 ); + + MyStruct s; + assert( s.check() == 2 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/static_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,48 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_06.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +struct MyStruct{ + static int status; + + static void staticCheck(){ + status++; + } + + void liveCheck(){ + status--; + } + + void liveCheck2(){ + staticCheck(); + staticCheck(); + } +} + +int main(){ + MyStruct s; + + s.status++; + assert( s.status == 1 ); + assert( MyStruct.status == 1 ); + + s.staticCheck(); + assert( s.status == 2 ); + assert( MyStruct.status == 2 ); + + s.liveCheck(); + assert( s.status == 1 ); + assert( MyStruct.status == 1 ); + + s.liveCheck2(); + assert( s.status == 3 ); + assert( MyStruct.status == 3); + + MyStruct.status++; + assert( s.status == 4 ); + assert( MyStruct.status == 4 ); + + MyStruct.staticCheck(); + assert( s.status == 5 ); + assert( MyStruct.status == 5 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/static_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/static_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/static_12.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int status; +class MyClass{ + static this(){ + status = 9; + } +} + +int main(){ + assert( status == 9 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/struct_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +struct MyStruct{ +} + +int main(){ + MyStruct m; + MyStruct * n = &m; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/struct_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_02.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +struct MyStruct{ + int x; +} + +int main(){ + MyStruct m; + m.x++; + assert( m.x == 1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/struct_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_03.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int status; + +struct MyStruct{ + int check(){ + status++; + return 2; + } +} + +int main(){ + MyStruct m; + assert( m.check() == 2 ); + assert( status == 1 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/struct_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,26 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_08.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +struct MyStruct{ + int data() { + return m_data; + } + + void data(int value) { + m_data = value; + } + +private: + int m_data; +} + +int main(){ + MyStruct m; + + m.data = 3; + assert ( m.data == 3); + + m.data(5); + assert ( m.data() == 5); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/struct_10.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_10.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_10.d,v 1.2 2004/09/22 23:53:46 th Exp $ + +// @author@ Sean Kelly +// @date@ 2004-08-06 +// @uri@ news://cf0r1f$u4n$1@digitaldaemon.com + +struct MyStruct{ + static MyStruct opCall(){ + MyStruct s; + return s; + } +} + +int main(){ + MyStruct s = MyStruct(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/struct_12.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_12.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,40 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_12.d,v 1.1 2004/08/21 23:01:17 th Exp $ + +// @author@ Bent Rasmussen +// @date@ 2004-06-21 +// @uri@ news://cb550t$1pon$1@digitaldaemon.com + +int status; + +struct MyStruct{ +} + +void rec(int i, MyStruct s){ + if( i > 0 ){ + status++; + rec(i-1, s); + } +} + +int main(){ + assert(status==0); + MyStruct st; + rec(1030, st); + assert(status==1030); + return 0; +} + + + + + + + + + + + + + + + diff -r 000000000000 -r 3269e4627918 run/struct_13.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_13.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/struct_13.d,v 1.1 2004/09/23 00:33:38 th Exp $ + +// @author@ Lars Ivar Igesund +// @date@ 2004-09-19 + +struct MyStruct{ + static const MyStruct STATIC; +} + +int main(){ + MyStruct s = MyStruct.STATIC; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/super_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/super_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/super_01.d,v 1.1 2004/08/21 20:44:50 th Exp $ + +int status; + +class Parent{ + void test(){ + status++; + } +} + +class Child : Parent { + void test(){ + assert(status==0); + super.test(); + assert(status==1); + } +} + +int main(){ + Child c = new Child(); + c.test(); + assert(status==1); + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/super_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/super_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,33 @@ +//$Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/super_02.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +// @author@ Ant +// @date@ 2004-08-21 +// @uri@ news://pan.2004.08.21.15.02.20.419085@yahoo.ca> + +int status; + +class A { + void test(){ + assert(status==2); + status++; + } +} + +class B : A { +} + +class C : B { + void test(){ + assert(status==0); + status+=2; + super.test(); + assert(status==3); + } +} + +int main(){ + C c = new C(); + c.test(); + assert(status==3); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/super_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/super_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/super_04.d,v 1.1 2004/09/23 06:08:42 th Exp $ + +// @author@ J Anderson +// @date@ 2004-05-23 + +template MyTemplate(Type){ + this(){ + super.test(); + } +} + +class Parent{ + int test(){ + return 2; + } +} + +class Child : Parent{ + mixin MyTemplate!(Child); +} + +int main(){ + Child c = new Child(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_01.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + int test=10; + + assert(test==10); + switch(test){ + case 11: test*=test; + case 10: test+=1; + case 9: test*=2; + } + assert(test==22); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_02.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + int test=10; + + assert(test==10); + switch(test){ + case 11: test*=test; + case 10: test+=1; break; + default: test*=2; + } + assert(test==11); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_03.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + int test=10; + + assert(test==10); + try{ + switch(test){ + case 11: break; + case 12: break; + } + }catch(Exception e){ + test=1; + } + + assert(test==1); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,23 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_04.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + int test=10; + + assert(test==10); + switch(test){ + case 11:{ + test*=test; + case 10:{ + test+=2; + } + test+=3; + }case 12:{ + test+=1; + break; + } + default: test*=2; + } + assert(test==16); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_05.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + int test=10; + + assert(test==10); + switch(test){ + case 11: break; + case 12,10,9:{ + test+=6; + } + } + assert(test==16); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_06.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + char[] test="eins"; + + switch(test){ + case "null","drei": + assert(0); + case "vier": + assert(0); + default: + assert(1); + } + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/switch_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/switch_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,20 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/switch_07.d,v 1.1 2004/09/21 22:05:10 th Exp $ + +int main(){ + char[] test="eins"; + + switch(test){ + case "null","drei":{ + assert(0); + case "eins":{ + assert(1); + break; + } + assert(0); + }case "vier":{ + assert(0); + } + } + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +// @author@ Daniel Horn +// @date@ 2004-05-01 +// @uri@ news://c6uoje$14a1$1@digitaldaemon.com + +template T(int size){ + int vec[size]; +} + +int main(){ + int a = T!(4>1?4:1).vec[0]; + int b = T!(4==1?1:(1==1?4:(4>1?1:4))).vec[0]; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,21 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_03.d,v 1.1 2004/08/22 07:47:07 th Exp $ + +// @author@ Nick +// @date@ 2004-08-05 +// @uri@ news://cetp3r$1rrc$1@digitaldaemon.com + +template Bar(Y){ + void Bar(Y param){ + } +} + +template Foo(alias X){ + alias Bar!(typeof(X)) Foo; +} + +int main(){ + float f = 1.2f; + mixin Foo!(f); + Foo(f); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,26 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_04.d,v 1.1 2004/08/22 07:47:07 th Exp $ + +// @author@ Nick +// @date@ 2004-08-05 +// @uri@ news://cetp3r$1rrc$1@digitaldaemon.com + +template Bar(Y){ + void Bar(Y param){ + } +} + +template Foo(alias X){ + alias Bar!(typeof(X)) Foo; +} + +void unused(){ + float f = 2.1f; + Bar!(typeof(f))(f); +} + +int main(){ + float f = 1.2f; + mixin Foo!(f); + Foo(f); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_class_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_class_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_01.d,v 1.1 2004/09/23 05:12:38 th Exp $ + +// @author@ berupon +// @date@ 2004-05-10 + +alias int MyInt; + +class TemplateClass(T, T2 = MyInt){ +} + +alias TemplateClass!(int) MyClass; + +int main(){ + MyClass m = new MyClass(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_class_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_class_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,16 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_02.d,v 1.1 2004/09/23 05:12:38 th Exp $ + +// @author@ berupon +// @date@ 2004-05-10 + +typedef int MyInt; + +class TemplateClass(T, T2 = MyInt){ +} + +alias TemplateClass!(int) MyClass; + +int main(){ + MyClass m = new MyClass(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_class_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_class_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,19 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_03.d,v 1.1 2004/09/23 06:03:46 th Exp $ + +// @author@ Roel Mathys +// @date@ 2004-05-21 + +class MyClass(T1){ + alias T1 type1; +} + +class MyClass(T1, T2){ + alias T1 type1; + alias MyClass!(T2) type2; +} + +int main(){ + alias MyClass!(int,long) CT; + CT c = new CT(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_class_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_class_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_04.d,v 1.1 2004/09/23 06:16:18 th Exp $ + +// @author@ Bastiaan Veelo +// @date@ 2004-09-23 + +class Parent(){ +} + +class Child : Parent!(){ +} + +class Parent(Type){ +} + +int main(){ + Child c = new Child(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_class_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_class_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_05.d,v 1.1 2004/09/23 06:16:18 th Exp $ + +// @author@ Bastiaan Veelo +// @date@ 2004-09-23 + +class Parent(Type){ +} + +class Child : Parent!(){ +} + +class Parent(){ +} + +int main(){ + Child c = new Child(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/template_class_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/template_class_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,18 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/template_class_06.d,v 1.1 2004/09/23 06:16:18 th Exp $ + +// @author@ Bastiaan Veelo +// @date@ 2004-09-23 + +class Parent(Type){ +} + +class Parent(){ +} + +class Child : Parent!(){ +} + +int main(){ + Child c = new Child(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/throw_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/throw_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/throw_01.d,v 1.1 2004/08/23 17:18:36 th Exp $ + +int main(){ + int status=0; + try{ + throw new Exception("a"); + }catch{ + status=1; + } + assert(status==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/throw_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/throw_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/throw_02.d,v 1.1 2004/08/23 17:18:36 th Exp $ + +class MyClass{ + bool toss(){ + throw new Exception("e"); + } +} + +int main(){ + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_01.d,v 1.1 2004/09/22 20:12:54 th Exp $ + +int main(){ + int check=0; + assert(check==0); + try{ + throw new Exception("message"); + }catch(Exception){ + check++; + } + assert(check==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_02.d,v 1.1 2004/09/22 20:12:54 th Exp $ + +int main(){ + int check=0; + assert(check==0); + try{ + throw new Exception("message"); + }catch(Exception){ + check++; + }finally{ + check++; + } + assert(check==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_03.d,v 1.1 2004/09/22 20:12:54 th Exp $ + +int main(){ + int check=0; + assert(check==0); + try{ + }catch(Exception){ + check++; + }finally{ + check++; + } + assert(check==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,26 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_04.d,v 1.1 2004/09/22 20:12:54 th Exp $ + +class MyException : Exception{ + this(char[] msg){ + super(msg); + } + int x; +} +int main(){ + int check=0; + assert(check==0); + try{ + MyException e=new MyException(""); + e.x=2; + throw e; + }catch(MyException me){ + assert(me.x==2); + check+=5; + }catch(Exception){ + check+=3; + }finally{ + check++; + } + assert(check==6); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_06.d,v 1.1 2004/09/22 20:12:54 th Exp $ + +int main(){ + int check=0; + assert(check==0); + try{ + }finally{ + check++; + } + assert(check==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_07.d,v 1.1 2004/09/22 20:12:54 th Exp $ + +int main(){ + int check=0; + assert(check==0); + try{ + throw new Exception("mesg"); + }catch{ + check++; + } + assert(check==1); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/try_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/try_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/try_08.d,v 1.1 2004/09/22 20:12:55 th Exp $ + +int main(){ + int check=0; + assert(check==0); + try{ + throw new Exception("mesg"); + }catch{ + check++; + }finally{ + check++; + } + assert(check==2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/typedef_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typedef_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typedef_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +typedef int myint; + +int foo(int x) { return -1;} +int foo(myint x) { return 0; } + +int main(char[][] args){ + myint a = cast(myint)0; + return foo(a); +} diff -r 000000000000 -r 3269e4627918 run/typedef_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typedef_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typedef_02.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +typedef int myint = 1; + +int main(char[][] args){ + myint a; + return a-1; +} diff -r 000000000000 -r 3269e4627918 run/typedef_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typedef_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typedef_03.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +// @author@ Sam McCall +// @date@ 2004-07-27 +// @uri@ news://ce586c$212e$1@digitaldaemon.com + +public static final uint U = (cast(uint)(-1)) >>> 2; + +typedef uint myType; +public static final myType T = (cast(myType)(-1)) >>> 2; + +int main(){ + assert(U == 0x3FFFFFFF); + assert(T == 0x3FFFFFFF); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/typedef_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typedef_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typedef_04.d,v 1.1 2004/08/21 22:51:39 th Exp $ + +// @author@ berupon +// @date@ 2004-06-10 +// @uri@ news://20040611054017.9D25.YU@3dcg.ne.jp + +typedef int Int; + +class Test( T = Int){ +} + +alias Test!() Test2; + +int main(){ + Test2 t; + return 0; +} diff -r 000000000000 -r 3269e4627918 run/typeof_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typeof_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typeof_01.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int main(){ + int a = 1; + typeof(a) b; + b = a; + return --b; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/typeof_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typeof_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,7 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typeof_02.d,v 1.1 2004/08/20 23:42:54 th Exp $ + +int main(){ + typeof(3 + 6.0) x; // x is of type double + x = 9.0; + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/typeof_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typeof_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typeof_03.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +int main(){ + int i = 1; + typeof(++i) j; // j is declared to be an int, i is not incremented + assert( i == 1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/typeof_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/typeof_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,31 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/typeof_04.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +class A { + int value(){ + return 'A'; + } +} + +class B : A { + int value(){ + return 'B'; + } + + typeof(super) a; // y is declared to be an A + typeof(this) b; // x is declared to be a B + + this(){ + a = new A(); + //b = new B(); + } +} + +int main(){ + B b = new B(); + + assert(b.value == 'B'); + assert(b.a.value == 'A'); + //assert(b.b.value == 'B'); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/types_declaration_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/types_declaration_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,22 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/types_declaration_01.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +int main(char[][] args){ + int a; // a is an int + int* b; // b is a pointer to int + int** c; // c is a pointer to a pointer to int + int[] d; // d is an array of ints + int*[] e; // e is an array of pointers to ints + int[]* f; // f is a pointer to an array of ints + int[3] g; // g is an array of 3 ints + int[3][5] h; // h is an array of 5 arrays of 3 ints + int[3]*[5] i; // i is an array of 5 pointers to arrays of 3 ints + int (*j)(char); // j is a pointer to a function taking a char argument and returning an int + int (*[] k)(char); // k is an array of pointers to functions taking a char argument and returning an int + int l[3]; // l is an array of 3 ints + int m[3][5]; // m is an array of 3 arrays of 5 ints + int (*n[5])[3]; // n is an array of 5 pointers to arrays of 3 ints + int o,p; // o and p are ints + int* q,r; // x and y are pointers to ints + int[] s,t; // x and y are arrays of ints + return 0; +} diff -r 000000000000 -r 3269e4627918 run/types_defining_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/types_defining_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/types_defining_01.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +typedef int myint; + +int foo(int x) { return -1;} +int foo(myint x) { return 0; } + +int main(char[][] args){ + myint a = cast(myint)0; + return foo(a); +} diff -r 000000000000 -r 3269e4627918 run/ubyte_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ubyte_01.d,v 1.2 2004/08/21 20:44:51 th Exp $ + +int main(){ + ubyte a; + assert( a == 0 ); + assert( a.init == 0 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ubyte_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ubyte_02.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ubyte u; + assert( u.sizeof == 1 ); + assert( ubyte.sizeof == 1 ); + assert( typeid( ubyte ).tsize() == 1 ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ubyte_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ubyte_03.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ubyte u; + + assert( u.alignof >= u.sizeof ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ubyte_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ubyte_04.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ubyte u; + + assert( u.max == 255 ); + assert( ubyte.max == 255 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ubyte_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ubyte_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ubyte_05.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ubyte u; + + assert( u.min == 0 ); + assert( ubyte.min == 0 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/uint_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/uint_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/uint_01.d,v 1.2 2004/08/21 21:38:30 th Exp $ + +int main(){ + uint a; + + assert( a.init == 0 ); + assert( uint.init == 0 ); + assert( a == 0 ); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ushort_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ushort_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,10 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ushort_01.d,v 1.2 2004/08/21 20:44:51 th Exp $ + +int main(){ + ushort a; + assert( a.init == 0 ); + assert( ushort.init == 0 ); + assert( a == 0 ); + return 0; +} + diff -r 000000000000 -r 3269e4627918 run/ushort_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ushort_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,9 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ushort_02.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ushort u; + assert( u.sizeof == 2 ); + assert( ushort.sizeof == 2 ); + assert( typeid( ushort ).tsize() == 2); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ushort_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ushort_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ushort_03.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ushort u; + assert( u.alignof >= u.sizeof ); + assert( ushort.alignof >= u.sizeof ); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/ushort_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/ushort_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,8 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/ushort_04.d,v 1.1 2004/08/21 20:44:51 th Exp $ + +int main(){ + ushort u; + assert( u.max == 0xFFFF ); + assert( ushort.max == 0xFFFF); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/version_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,12 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_01.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +version = MyVersion; + +int main(){ + int i; + version(MyVersion){ + i++; + } + assert(i == 1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/version_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,25 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_02.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +int main(){ + int os; + + version(Win32){ + os+=2; + } + + version(Win64){ + os+=2; + } + + version(Windows){ + os--; + } + + version(linux){ + os++; + } + + assert(os == 1); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/version_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_03.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +int main(){ + int endian; + + version(LittleEndian){ + endian++; + } + + version(BigEndian){ + endian++; + } + + assert(endian == 1); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/version_04.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_04.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,17 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_04.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +int main(){ + int cpu=0; + + version(X86){ + cpu++; + } + + version(AMD64){ + cpu++; + } + + assert(cpu==1); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/version_05.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_05.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,13 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_05.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +int main(){ + int check=0; + + version(none){ + check++; + } + + assert(check==0); + + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/version_06.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_06.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_06.d,v 1.2 2004/09/22 23:58:17 th Exp $ + +version = none; // none: _Never_ defined; used to just disable a section of code + +int main(){ + int check=0; + + version(none){ + check++; + } + + assert(check==0); + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/version_07.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_07.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,21 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_07.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +version = AA; + +int main(){ + int check=0; + + version(CC){ + check++; + } + + assert(check==1); + + return 0; +} + +version(BB){ + version = DD; +}else{ + version = CC; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/version_08.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_08.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,28 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/version_08.d,v 1.1 2004/08/20 23:42:55 th Exp $ + +version = 4; + +int main(){ + + version(5){ + assert(0); + } + + version(4){ + assert(1); + }else{ + assert(0); + } + + version(3){ + version(4){ + assert(1); + }else{ + assert(0); + } + }else{ + assert(0); + } + + return 0; +} diff -r 000000000000 -r 3269e4627918 run/while_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/while_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,11 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/while_01.d,v 1.1 2004/09/21 21:13:01 th Exp $ + +int main(){ + int test=10; + assert(test==10); + while(test>0){ + test--; + } + assert(test==0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/while_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/while_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,15 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/while_02.d,v 1.1 2004/09/21 21:13:02 th Exp $ + +int main(){ + int test=10; + assert(test==10); + while(test>0){ + test--; + if(test<11){ + continue; + } + assert(0); + } + assert(test==0); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/while_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/while_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,14 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/while_03.d,v 1.1 2004/09/21 21:13:02 th Exp $ + +int main(){ + int test=10; + assert(test==10); + while(test>0){ + test--; + if(test<2){ + break; + } + } + assert(test==1); + return 0; +} \ No newline at end of file diff -r 000000000000 -r 3269e4627918 run/with_01.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/with_01.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,21 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/with_01.d,v 1.1 2004/09/22 20:12:55 th Exp $ + +class MyClass{ + int test(){ + return 1; + } +} + +int test(){ + return 0; +} + +int main(){ + MyClass object=new MyClass(); + assert(test()==0); + with(object){ + assert(test()==1); + } + assert(test()==0); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/with_02.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/with_02.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,32 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/with_02.d,v 1.1 2004/09/22 20:12:55 th Exp $ + +class MyClass{ + int test(){ + return 1; + } +} + +class Check{ + int test(){ + return 2; + } + + void check(){ + MyClass object=new MyClass(); + assert(test()==2); + with(object){ + assert(test()==1); + assert(this.test()==2); + } + } +} + +int test(){ + return 0; +} + +int main(){ + Check o=new Check(); + o.check(); + return 0; +} diff -r 000000000000 -r 3269e4627918 run/with_03.d --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/with_03.d Sat Sep 25 22:33:30 2004 +0000 @@ -0,0 +1,38 @@ +// $Header: /home/th/Dokumente/Entwicklung/MEIN_CVS/MiniD/src/run/with_03.d,v 1.1 2004/09/22 20:12:55 th Exp $ + +class MyClass{ + int test(){ + return 1; + } +} + +class Parent{ + int test(){ + return 3; + } +} + +class Check : Parent{ + int test(){ + return 2; + } + + void check(){ + MyClass object=new MyClass(); + assert(test()==2); + with(object){ + assert(test()==1); + assert(super.test()==3); + } + } +} + +int test(){ + return 0; +} + +int main(){ + Check o=new Check(); + o.check(); + return 0; +}