Home | History | Annotate | Download | only in Sema

Lines Matching full:_static_assert

13 _Static_assert(__GCC_ATOMIC_BOOL_LOCK_FREE == 2, "");
14 _Static_assert(__GCC_ATOMIC_CHAR_LOCK_FREE == 2, "");
15 _Static_assert(__GCC_ATOMIC_CHAR16_T_LOCK_FREE == 2, "");
16 _Static_assert(__GCC_ATOMIC_CHAR32_T_LOCK_FREE == 2, "");
17 _Static_assert(__GCC_ATOMIC_WCHAR_T_LOCK_FREE == 2, "");
18 _Static_assert(__GCC_ATOMIC_SHORT_LOCK_FREE == 2, "");
19 _Static_assert(__GCC_ATOMIC_INT_LOCK_FREE == 2, "");
20 _Static_assert(__GCC_ATOMIC_LONG_LOCK_FREE == 2, "");
22 _Static_assert(__GCC_ATOMIC_LLONG_LOCK_FREE == 1, "");
24 _Static_assert(__GCC_ATOMIC_LLONG_LOCK_FREE == 2, "");
26 _Static_assert(__GCC_ATOMIC_POINTER_LOCK_FREE == 2, "");
28 _Static_assert(__c11_atomic_is_lock_free(1), "");
29 _Static_assert(__c11_atomic_is_lock_free(2), "");
30 _Static_assert(__c11_atomic_is_lock_free(3), ""); // expected-error {{not an integral constant expression}}
31 _Static_assert(__c11_atomic_is_lock_free(4), "");
32 _Static_assert(__c11_atomic_is_lock_free(8), "");
33 _Static_assert(__c11_atomic_is_lock_free(16), ""); // expected-error {{not an integral constant expression}}
34 _Static_assert(__c11_atomic_is_lock_free(17), ""); // expected-error {{not an integral constant expression}}
36 _Static_assert(__atomic_is_lock_free(1, 0), "");
37 _Static_assert(__atomic_is_lock_free(2, 0), "");
38 _Static_assert(__atomic_is_lock_free(3, 0), ""); // expected-error {{not an integral constant expression}}
39 _Static_assert(__atomic_is_lock_free(4, 0), "");
40 _Static_assert(__atomic_is_lock_free(8, 0), "");
41 _Static_assert(__atomic_is_lock_free(16, 0), ""); // expected-error {{not an integral constant expression}}
42 _Static_assert(__atomic_is_lock_free(17, 0), ""); // expected-error {{not an integral constant expression}}
50 _Static_assert(__atomic_is_lock_free(1, &i8), "");
51 _Static_assert(__atomic_is_lock_free(1, &i64), "");
52 _Static_assert(__atomic_is_lock_free(2, &i8), ""); // expected-error {{not an integral constant expression}}
53 _Static_assert(__atomic_is_lock_free(2, &i16), "");
54 _Static_assert(__atomic_is_lock_free(2, &i64), "");
55 _Static_assert(__atomic_is_lock_free(4, &i16), ""); // expected-error {{not an integral constant expression}}
56 _Static_assert(__atomic_is_lock_free(4, &i32), "");
57 _Static_assert(__atomic_is_lock_free(4, &i64), "");
58 _Static_assert(__atomic_is_lock_free(8, &i32), ""); // expected-error {{not an integral constant expression}}
59 _Static_assert(__atomic_is_lock_free(8, &i64), "");
61 _Static_assert(__atomic_always_lock_free(1, 0), "");
62 _Static_assert(__atomic_always_lock_free(2, 0), "");
63 _Static_assert(!__atomic_always_lock_free(3, 0), "");
64 _Static_assert(__atomic_always_lock_free(4, 0), "");
65 _Static_assert(__atomic_always_lock_free(8, 0), "");
66 _Static_assert(!__atomic_always_lock_free(16, 0), "");
67 _Static_assert(!__atomic_always_lock_free(17, 0), "");
69 _Static_assert(__atomic_always_lock_free(1, incomplete), "");
70 _Static_assert(!__atomic_always_lock_free(2, incomplete), "");
71 _Static_assert(!__atomic_always_lock_free(4, incomplete), "");
73 _Static_assert(__atomic_always_lock_free(1, &i8), "");
74 _Static_assert(__atomic_always_lock_free(1, &i64), "");
75 _Static_assert(!__atomic_always_lock_free(2, &i8), "");
76 _Static_assert(__atomic_always_lock_free(2, &i16), "");
77 _Static_assert(__atomic_always_lock_free(2, &i64), "");
78 _Static_assert(!__atomic_always_lock_free(4, &i16), "");
79 _Static_assert(__atomic_always_lock_free(4, &i32), "");
80 _Static_assert(__atomic_always_lock_free(4, &i64), "");
81 _Static_assert(!__atomic_always_lock_free(8, &i32), "");
82 _Static_assert(__atomic_always_lock_free(8, &i64), "");