implemented Setup.hs to build boehm cpp libs and install them;
[hs-boehmgc.git] / gc-7.2 / libatomic_ops / tests / list_atomic.template
1 /*
2  * Copyright (c) 2003 by Hewlett-Packard Company.  All rights reserved.
3  *
4  * This file is covered by the GNU general public license, version 2.
5  * see doc/COPYING for details.
6  */
7
8 /* This generates a compilable program.  But it is really meant to be   */
9 /* be used only with cc -E, to inspect the expensions generated by      */
10 /* primitives.                                                          */
11
12 /* The result will not link or run.                                     */
13
14 void list_atomicXX(void)
15 {
16   AO_T val, newval = 0, oldval = 0;
17   AO_TS_T ts;
18   long incr = 0;
19
20 # if defined(AO_HAVE_nopXX)
21     "AO_nopXX(): ";
22     AO_nopXX();
23 # else
24     "No AO_nopXX";
25 # endif
26 # if defined(AO_HAVE_loadXX)
27     "AO_loadXX(&val):";
28     AO_loadXX(&val);
29 # else
30     "No AO_loadXX";
31 # endif
32 # if defined(AO_HAVE_storeXX)
33     "AO_storeXX(&val, newval):";
34     AO_storeXX(&val, newval);
35 # else
36     "No AO_storeXX";
37 # endif
38 # if defined(AO_HAVE_test_and_setXX)
39     "AO_test_and_setXX(&ts):";
40     AO_test_and_setXX(&ts);
41 # else
42     "No AO_test_and_setXX";
43 # endif
44 # if defined(AO_HAVE_fetch_and_add1XX)
45     "AO_fetch_and_add1XX(&val):";
46     AO_fetch_and_add1XX(&val);
47 # else
48     "No AO_fetch_and_add1XX";
49 # endif
50 # if defined(AO_HAVE_fetch_and_sub1XX)
51     "AO_fetch_and_sub1XX(&val):";
52     AO_fetch_and_sub1XX(&val);
53 # else
54     "No AO_fetch_and_sub1XX";
55 # endif
56 # if defined(AO_HAVE_fetch_and_addXX)
57     "AO_fetch_and_addXX(&val, incr):";
58     AO_fetch_and_addXX(&val, incr);
59 # else
60     "No AO_fetch_and_addXX";
61 # endif
62 # if defined(AO_HAVE_compare_and_swapXX)
63     "AO_compare_and_swapXX(&val, oldval, newval):";
64     AO_compare_and_swapXX(&val, oldval, newval);
65 # else
66     "No AO_compare_and_swapXX";
67 # endif
68 }