Index: tests/linking/.expect/nostdlib.txt
===================================================================
--- tests/linking/.expect/nostdlib.txt	(revision 8abca0660e7023ad48db341fe98ce11969bb2e8a)
+++ tests/linking/.expect/nostdlib.txt	(revision 8abca0660e7023ad48db341fe98ce11969bb2e8a)
@@ -0,0 +1,1 @@
+NO
Index: tests/linking/nostdlib.cfa
===================================================================
--- tests/linking/nostdlib.cfa	(revision 8abca0660e7023ad48db341fe98ce11969bb2e8a)
+++ tests/linking/nostdlib.cfa	(revision 8abca0660e7023ad48db341fe98ce11969bb2e8a)
@@ -0,0 +1,34 @@
+//
+// 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.
+//
+// nostdlib.cfa --
+//
+// Author           : Thierry Delisle
+// Created On       : Tue Jul 16 12:14:39 2019
+// Last Modified By :
+// Last Modified On :
+// Update Count     :
+//
+
+extern _Bool threading_enabled(void) __attribute__((weak));
+
+int main() {
+	if(threading_enabled) {
+		if(threading_enabled()) {
+			printf("YES\n");
+		} else {
+			printf("NO\n");
+		}
+	} else {
+		printf("NO LIB\n");
+	}
+	return 0;
+}
+
+// Local Variables: //
+// tab-width: 4 //
+// compile-command: "cfa nostdlib.cfa" //
+// End: //
