source: tests/linking/nothreads.cfa @ 87fc1b4

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 87fc1b4 was 2026bb6, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

More robust fix for optionally linking threads

  • Property mode set to 100644
File size: 617 bytes
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// nothreads.cfa --
8//
9// Author           : Thierry Delisle
10// Created On       : Tue Jul 16 12:14:39 2019
11// Last Modified By :
12// Last Modified On :
13// Update Count     :
14//
15
16#include <fstream.hfa>
17#include <stdlib.hfa>
18
19int main() {
20        if(threading_enabled()) {
21                stdout | "YES";
22        } else {
23                stdout | "NO";
24        }
25        return 0;
26}
27
28// Local Variables: //
29// tab-width: 4 //
30// compile-command: "cfa nothreads.cfa" //
31// End: //
Note: See TracBrowser for help on using the repository browser.