DMD-1.017: __VENDOR__ and __VERSION__
author |
thomask |
date |
Mon, 23 Jul 2007 18:45:03 +0000 |
parents |
46ba0b9746f3 |
children |
01c289574a6d |
files |
compile/v/VENDOR_01_A.d compile/v/VERSION_01_A.d |
diffstat |
2 files changed, 18 insertions(+), 0 deletions(-)
[+]
|
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/v/VENDOR_01_A.d Mon Jul 23 18:45:03 2007 +0000
@@ -0,0 +1,9 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.v.VENDOR_01_A;
+
+const char[] vendor = __VENDOR__;
+
+static assert(0 < vendor.length);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/compile/v/VERSION_01_A.d Mon Jul 23 18:45:03 2007 +0000
@@ -0,0 +1,9 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+module dstress.compile.v.VERSION_01_A;
+
+const int vers = __VERSION__;
+
+static assert(vers);