OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libstdc++-v3/] [testsuite/] [29_atomics/] [headers/] [stdatomic.h/] [macros.c] - Blame information for rev 424

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 424 jeremybenn
// { dg-options "-x c" }
2
// { dg-do compile }
3
 
4
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
5
//
6
// This file is part of the GNU ISO C++ Library.  This library is free
7
// software; you can redistribute it and/or modify it under the
8
// terms of the GNU General Public License as published by the
9
// Free Software Foundation; either version 3, or (at your option)
10
// any later version.
11
 
12
// This library is distributed in the hope that it will be useful,
13
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
// GNU General Public License for more details.
16
 
17
// You should have received a copy of the GNU General Public License along
18
// with this library; see the file COPYING3.  If not see
19
// <http://www.gnu.org/licenses/>.
20
 
21
#include <stdatomic.h>
22
 
23
int main()
24
{
25
#ifndef ATOMIC_INTEGRAL_LOCK_FREE
26
    #error "ATOMIC_INTEGRAL_LOCK_FREE_must_be_a_macro"
27
#endif
28
 
29
#ifndef ATOMIC_ADDRESS_LOCK_FREE
30
    #error "ATOMIC_ADDRESS_LOCK_FREE_must_be_a_macro"
31
#endif
32
 
33
#ifndef ATOMIC_FLAG_INIT
34
    #error "ATOMIC_FLAG_INIT_must_be_a_macro"
35
#endif
36
 
37
#ifndef atomic_is_lock_free
38
    #error "atomic_is_lock_free_must_be_a_macro"
39
#endif
40
 
41
#ifndef atomic_load
42
    #error "atomic_load_must_be_a_macro"
43
#endif
44
 
45
#ifndef atomic_load_explicit
46
    #error "atomic_load_explicit_must_be_a_macro"
47
#endif
48
 
49
#ifndef atomic_store_explicit
50
    #error "atomic_store_explicit_must_be_a_macro"
51
#endif
52
 
53
#ifndef atomic_store
54
    #error "atomic_store_must_be_a_macro"
55
#endif
56
 
57
#ifndef atomic_exchange_explicit
58
    #error "atomic_exchange_explicit_must_be_a_macro"
59
#endif
60
 
61
#ifndef atomic_exchange
62
    #error "atomic_exchange_must_be_a_macro"
63
#endif
64
 
65
#ifndef atomic_compare_exchange
66
    #error "atomic_compare_exchange_must_be_a_macro"
67
#endif
68
 
69
#ifndef atomic_compare_exchange_explicit
70
    #error "atomic_compare_exchange_explicit_must_be_a_macro"
71
#endif
72
 
73
#ifndef atomic_fetch_add_explicit
74
    #error "atomic_fetch_add_explicit_must_be_a_macro"
75
#endif
76
 
77
#ifndef atomic_fetch_add
78
    #error "atomic_fetch_add_must_be_a_macro"
79
#endif
80
 
81
#ifndef atomic_fetch_sub_explicit
82
    #error "atomic_fetch_sub_explicit_must_be_a_macro"
83
#endif
84
 
85
#ifndef atomic_fetch_sub
86
    #error "atomic_fetch_sub_must_be_a_macro"
87
#endif
88
 
89
#ifndef atomic_fetch_and_explicit
90
    #error "atomic_fetch_and_explicit_must_be_a_macro"
91
#endif
92
 
93
#ifndef atomic_fetch_and
94
    #error "atomic_fetch_and_must_be_a_macro"
95
#endif
96
 
97
#ifndef atomic_fetch_or_explicit
98
    #error "atomic_fetch_or_explicit_must_be_a_macro"
99
#endif
100
 
101
#ifndef atomic_fetch_or
102
    #error "atomic_fetch_or_must_be_a_macro"
103
#endif
104
 
105
#ifndef atomic_fetch_xor_explicit
106
    #error "atomic_fetch_xor_explicit_must_be_a_macro"
107
#endif
108
 
109
#ifndef atomic_fetch_xor
110
    #error "atomic_fetch_xor_must_be_a_macro"
111
#endif
112
 
113
  return 0;
114
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.