Home | History | Annotate | Download | only in Sema

Lines Matching full:_static_assert

9 _Static_assert(__GCC_ATOMIC_BOOL_LOCK_FREE == 2, "");
10 _Static_assert(__GCC_ATOMIC_CHAR_LOCK_FREE == 2, "");
11 _Static_assert(__GCC_ATOMIC_CHAR16_T_LOCK_FREE == 2, "");
12 _Static_assert(__GCC_ATOMIC_CHAR32_T_LOCK_FREE == 2, "");
13 _Static_assert(__GCC_ATOMIC_WCHAR_T_LOCK_FREE == 2, "");
14 _Static_assert(__GCC_ATOMIC_SHORT_LOCK_FREE == 2, "");
15 _Static_assert(__GCC_ATOMIC_INT_LOCK_FREE == 2, "");
16 _Static_assert(__GCC_ATOMIC_LONG_LOCK_FREE == 2, "");
18 _Static_assert(__GCC_ATOMIC_LLONG_LOCK_FREE == 1, "");
20 _Static_assert(__GCC_ATOMIC_LLONG_LOCK_FREE == 2, "");
22 _Static_assert(__GCC_ATOMIC_POINTER_LOCK_FREE == 2, "");
24 _Static_assert(__c11_atomic_is_lock_free(1), "");
25 _Static_assert(__c11_atomic_is_lock_free(2), "");
26 _Static_assert(__c11_atomic_is_lock_free(3), ""); // expected-error {{not an integral constant expression}}
27 _Static_assert(__c11_atomic_is_lock_free(4), "");
28 _Static_assert(__c11_atomic_is_lock_free(8), "");
29 _Static_assert(__c11_atomic_is_lock_free(16), ""); // expected-error {{not an integral constant expression}}
30 _Static_assert(__c11_atomic_is_lock_free(17), ""); // expected-error {{not an integral constant expression}}
32 _Static_assert(__atomic_is_lock_free(1, 0), "");
33 _Static_assert(__atomic_is_lock_free(2, 0), "");
34 _Static_assert(__atomic_is_lock_free(3, 0), ""); // expected-error {{not an integral constant expression}}
35 _Static_assert(__atomic_is_lock_free(4, 0), "");
36 _Static_assert(__atomic_is_lock_free(8, 0), "");
37 _Static_assert(__atomic_is_lock_free(16, 0), ""); // expected-error {{not an integral constant expression}}
38 _Static_assert(__atomic_is_lock_free(17, 0), ""); // expected-error {{not an integral constant expression}}
40 _Static_assert(atomic_is_lock_free((atomic_char*)0), "");
41 _Static_assert(atomic_is_lock_free((atomic_short*)0), "");
42 _Static_assert(atomic_is_lock_free((atomic_int*)0), "");
43 _Static_assert(atomic_is_lock_free((atomic_long*)0), "");
45 _Static_assert(atomic_is_lock_free((_Atomic(__int128)*)0), ""); // expected-error {{not an integral constant expression}}
46 _Static_assert(atomic_is_lock_free(0 + (atomic_char*)0), "");
54 _Static_assert(__atomic_is_lock_free(1, &i8), "");
55 _Static_assert(__atomic_is_lock_free(1, &i64), "");
56 _Static_assert(__atomic_is_lock_free(2, &i8), ""); // expected-error {{not an integral constant expression}}
57 _Static_assert(__atomic_is_lock_free(2, &i16), "");
58 _Static_assert(__atomic_is_lock_free(2, &i64), "");
59 _Static_assert(__atomic_is_lock_free(4, &i16), ""); // expected-error {{not an integral constant expression}}
60 _Static_assert(__atomic_is_lock_free(4, &i32), "");
61 _Static_assert(__atomic_is_lock_free(4, &i64), "");
62 _Static_assert(__atomic_is_lock_free(8, &i32), ""); // expected-error {{not an integral constant expression}}
63 _Static_assert(__atomic_is_lock_free(8, &i64), "");
65 _Static_assert(__atomic_always_lock_free(1, 0), "");
66 _Static_assert(__atomic_always_lock_free(2, 0), "");
67 _Static_assert(!__atomic_always_lock_free(3, 0), "");
68 _Static_assert(__atomic_always_lock_free(4, 0), "");
69 _Static_assert(__atomic_always_lock_free(8, 0), "");
70 _Static_assert(!__atomic_always_lock_free(16, 0), "");
71 _Static_assert(!__atomic_always_lock_free(17, 0), "");
73 _Static_assert(__atomic_always_lock_free(1, incomplete), "");
74 _Static_assert(!__atomic_always_lock_free(2, incomplete), "");
75 _Static_assert(!__atomic_always_lock_free(4, incomplete), "");
77 _Static_assert(__atomic_always_lock_free(1, &i8), "");
78 _Static_assert(__atomic_always_lock_free(1, &i64), "");
79 _Static_assert(!__atomic_always_lock_free(2, &i8), "");
80 _Static_assert(__atomic_always_lock_free(2, &i16), "");
81 _Static_assert(__atomic_always_lock_free(2, &i64), "");
82 _Static_assert(!__atomic_always_lock_free(4, &i16), "");
83 _Static_assert(__atomic_always_lock_free(4, &i32), "");
84 _Static_assert(__atomic_always_lock_free(4, &i64), "");
85 _Static_assert(!__atomic_always_lock_free(8, &i32), "");
86 _Static_assert(__atomic_always_lock_free(8, &i64), "");