blob: 478fdd8283aa5dfeb716399edd41bf5b45cd0a82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
// { dg-options "-x c" }
// { dg-do compile }
// Copyright (C) 2008 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2, or (at your option)
// any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this library; see the file COPYING. If not, write to the Free
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
// USA.
#include <stdatomic.h>
void test01()
{
typedef memory_order t_01;
memory_order t_02 __attribute__((unused)) = memory_order_relaxed;
memory_order t_03 __attribute__((unused)) = memory_order_acquire;
memory_order t_04 __attribute__((unused)) = memory_order_release;
memory_order t_05 __attribute__((unused)) = memory_order_acq_rel;
memory_order t_06 __attribute__((unused)) = memory_order_seq_cst;
typedef atomic_flag t_07;
// atomics for builtins types
typedef atomic_bool t_08;
typedef atomic_char t_09;
typedef atomic_schar t_10;
typedef atomic_uchar t_11;
typedef atomic_short t_12;
typedef atomic_ushort t_13;
typedef atomic_int t_14;
typedef atomic_uint t_15;
typedef atomic_long t_16;
typedef atomic_ulong t_17;
typedef atomic_llong t_18;
typedef atomic_ullong t_19;
typedef atomic_wchar_t t_20;
typedef atomic_char16_t t_21;
typedef atomic_char32_t t_22;
// atomics for standard typedefs
typedef atomic_int_least8_t t_23;
typedef atomic_uint_least8_t t_24;
typedef atomic_int_least16_t t_25;
typedef atomic_uint_least16_t t_26;
typedef atomic_int_least32_t t_27;
typedef atomic_uint_least32_t t_28;
typedef atomic_int_least64_t t_29;
typedef atomic_uint_least64_t t_30;
typedef atomic_int_fast8_t t_31;
typedef atomic_uint_fast8_t t_32;
typedef atomic_int_fast16_t t_33;
typedef atomic_uint_fast16_t t_34;
typedef atomic_int_fast32_t t_35;
typedef atomic_uint_fast32_t t_36;
typedef atomic_int_fast64_t t_37;
typedef atomic_uint_fast64_t t_38;
typedef atomic_intptr_t t_39;
typedef atomic_uintptr_t t_40;
typedef atomic_size_t t_41;
typedef atomic_ssize_t t_42;
typedef atomic_ptrdiff_t t_43;
typedef atomic_intmax_t t_44;
typedef atomic_uintmax_t t_45;
typedef atomic_address t_46;
}
|