October 31, 2004 missing version sanity checks | ||||
---|---|---|---|---|
| ||||
There seem to be no sanity checks for version declarations. The version combinations below are accepted even though they are "insane". 1) Windows linux 2) Win32 Win64 etc.. 3) BigEndian LittleEndian 4) X86 AMD64 test cases: svn://svn.kuehne.cn/dstress/nocompile/command_line_version_(08,09,11..14).d svn://svn.kuehne.cn/dstress/nocompile/version_(17..22).d Compiler features can be set. e.g. dmd -version=D_InlineAsm test case: svn://svn.kuehne.cn/dstress/nocompile/command_line_version_15.d The version "none" can be defined, even though it's stated in the documentation that it is "Never defined; used to just disable a section of code". test cases: svn://svn.kuehne.cn/dstress/nocompile/command_line_version_10.d svn://svn.kuehne.cn/dstress/nocompile/version_06.d Thomas |
Copyright © 1999-2021 by the D Language Foundation