Index: tests/linking/.expect/nothreads.txt
===================================================================
--- tests/linking/.expect/nothreads.txt	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
+++ tests/linking/.expect/nothreads.txt	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
@@ -0,0 +1,1 @@
+NO
Index: tests/linking/.expect/withthreads.txt
===================================================================
--- tests/linking/.expect/withthreads.txt	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
+++ tests/linking/.expect/withthreads.txt	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
@@ -0,0 +1,1 @@
+YES
Index: tests/linking/nothreads.cfa
===================================================================
--- tests/linking/nothreads.cfa	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
+++ tests/linking/nothreads.cfa	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
@@ -0,0 +1,31 @@
+//
+// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
+//
+// The contents of this file are covered under the licence agreement in the
+// file "LICENCE" distributed with Cforall.
+//
+// nothreads.cfa --
+//
+// Author           : Thierry Delisle
+// Created On       : Tue Jul 16 12:14:39 2019
+// Last Modified By :
+// Last Modified On :
+// Update Count     :
+//
+
+#include <fstream.hfa>
+#include <stdlib.hfa>
+
+int main() {
+	if(threading_enabled()) {
+		stdout | "YES";
+	} else {
+		stdout | "NO";
+	}
+	return 0;
+}
+
+// Local Variables: //
+// tab-width: 4 //
+// compile-command: "cfa nothreads.cfa" //
+// End: //
Index: tests/linking/withthreads.cfa
===================================================================
--- tests/linking/withthreads.cfa	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
+++ tests/linking/withthreads.cfa	(revision 1d76f8a45217558d053b166db26d7751469c0fa8)
@@ -0,0 +1,37 @@
+//
+// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
+//
+// The contents of this file are covered under the licence agreement in the
+// file "LICENCE" distributed with Cforall.
+//
+// nothreads.cfa --
+//
+// Author           : Thierry Delisle
+// Created On       : Tue Jul 16 12:14:39 2019
+// Last Modified By :
+// Last Modified On :
+// Update Count     :
+//
+
+#include <fstream.hfa>
+#include <stdlib.hfa>
+
+#include <thread.hfa>
+
+thread Dummy {};
+void main( Dummy & ) {}
+
+int main() {
+	if(threading_enabled()) {
+		stdout | "YES";
+	} else {
+		stdout | "NO";
+	}
+	Dummy d;
+	return 0;
+}
+
+// Local Variables: //
+// tab-width: 4 //
+// compile-command: "cfa nothreads.cfa" //
+// End: //
