summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2015-02-22 22:44:16 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2015-02-22 22:44:16 (GMT)
commit26146b842f0ab9543142cfd5dbb21cb609030fad (patch)
tree092fcf55f3149e9491664b7ffad3685b20c7f08f /test
parent78234964d1c879874ac380e6c182355ded29af13 (diff)
downloadSCons-26146b842f0ab9543142cfd5dbb21cb609030fad.zip
SCons-26146b842f0ab9543142cfd5dbb21cb609030fad.tar.gz
SCons-26146b842f0ab9543142cfd5dbb21cb609030fad.tar.bz2
Test for tigris bug 2944. DFLAGS changes not causing rebuild
Diffstat (limited to 'test')
-rw-r--r--test/D/Issues/2944/image/SConstruct11
-rw-r--r--test/D/Issues/2944/image/main.d11
2 files changed, 22 insertions, 0 deletions
diff --git a/test/D/Issues/2944/image/SConstruct b/test/D/Issues/2944/image/SConstruct
new file mode 100644
index 0000000..2c7deee
--- /dev/null
+++ b/test/D/Issues/2944/image/SConstruct
@@ -0,0 +1,11 @@
+# -*- codig:utf-8; -*-
+
+env=Environment()
+
+change = ARGUMENTS.get('change', 0)
+if int(change):
+ env.Append(DFLAGS = '-d')
+
+env.Program('proj', ['main.d'])
+
+
diff --git a/test/D/Issues/2944/image/main.d b/test/D/Issues/2944/image/main.d
new file mode 100644
index 0000000..f0aa23a
--- /dev/null
+++ b/test/D/Issues/2944/image/main.d
@@ -0,0 +1,11 @@
+/* This program prints a
+ hello world message
+ to the console. */
+
+import std.stdio;
+
+void main()
+{
+ writeln("Hello, World!");
+}
+