summaryrefslogtreecommitdiffstats
path: root/test cases/d/1 simple/utils.d
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/d/1 simple/utils.d')
-rw-r--r--test cases/d/1 simple/utils.d8
1 files changed, 8 insertions, 0 deletions
diff --git a/test cases/d/1 simple/utils.d b/test cases/d/1 simple/utils.d
new file mode 100644
index 0000000..8645548
--- /dev/null
+++ b/test cases/d/1 simple/utils.d
@@ -0,0 +1,8 @@
+
+import std.stdio;
+import std.string : format;
+
+void printGreeting (string name)
+{
+ writeln ("Hello, I am %s.".format (name));
+}