source: tests/linking/nostdlib.cfa @ ab2b352

ADTast-experimental
Last change on this file since ab2b352 was 92a9768, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Marked libcfa as 'no-as-needed' to the linker, it seems to fix linking problems fixes #154?

  • Property mode set to 100644
File size: 697 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// nostdlib.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
16extern _Bool threading_enabled(void) __attribute__((weak));
17
18int main() {
19        if(threading_enabled) {
20                if(threading_enabled()) {
21                        printf("YES\n");
22                } else {
23                        printf("NO\n");
24                }
25        } else {
26                printf("NO LIB\n");
27        }
28        return 0;
29}
30
31// Local Variables: //
32// tab-width: 4 //
33// compile-command: "cfa nostdlib.cfa" //
34// End: //
Note: See TracBrowser for help on using the repository browser.