Searched refs:static_assert (Results 1 - 25 of 939) sorted by relevance

1234567891011>>

/external/clang/test/CodeGenCXX/
H A Dstatic-assert.cpp4 static_assert(true, "");
7 static_assert(true, "");
/external/clang/test/Frontend/
H A Dx86_64-nacl-types.cpp7 static_assert(alignof(char) == 1, "alignof char is wrong");
9 static_assert(alignof(short) == 2, "sizeof short is wrong");
10 static_assert(alignof(short) == 2, "alignof short is wrong");
12 static_assert(alignof(int) == 4, "sizeof int is wrong");
13 static_assert(alignof(int) == 4, "alignof int is wrong");
15 static_assert(sizeof(long) == 4, "sizeof long is wrong");
16 static_assert(sizeof(long) == 4, "alignof long is wrong");
18 static_assert(sizeof(long long) == 8, "sizeof long long is wrong wrong");
19 static_assert(alignof(long long) == 8, "alignof long long is wrong wrong");
21 static_assert(sizeo
[all...]
/external/clang/test/SemaCXX/
H A Dpredefined-expr.cpp6 static_assert(sizeof(__func__) == 4, "foo");
7 static_assert(sizeof(__FUNCTION__) == 4, "foo");
8 static_assert(sizeof(__PRETTY_FUNCTION__) == 11, "auto foo()");
13 static_assert(sizeof(__func__) == 4, "bar");
14 static_assert(sizeof(__FUNCTION__) == 4, "bar");
15 static_assert(sizeof(__PRETTY_FUNCTION__) == 10, "int bar()");
22 static_assert(sizeof(__func__) == 4, "baz");
23 static_assert(sizeof(__FUNCTION__) == 4, "baz");
24 static_assert(sizeof(__PRETTY_FUNCTION__) == 20, "int baz() [T = int]");
27 static_assert(sizeo
[all...]
H A Dfuncdname.cpp5 static_assert(sizeof(__FUNCDNAME__) == 12, "?foo@@YAHXZ");
12 static_assert(sizeof(__FUNCDNAME__) == 16, "??$baz@H@@YAHXZ");
19 static_assert(sizeof(__FUNCDNAME__) == 13, "??0A@@QAE@XZ");
22 static_assert(sizeof(__FUNCDNAME__) == 13, "??1A@@QAE@XZ");
27 static_assert(sizeof(__FUNCDNAME__) == 5, "main");
H A Dms_integer_suffix.cpp5 static_assert(sizeof(0i8) == __SIZEOF_INT8__, "");
8 static_assert(sizeof(0i16) == __SIZEOF_INT16__, "");
11 static_assert(sizeof(0i32) == __SIZEOF_INT32__, "");
14 static_assert(sizeof(0i64) == __SIZEOF_INT64__, "");
17 static_assert(sizeof(0i128) == __SIZEOF_INT128__, "");
H A Dstatic-assert.cpp5 static_assert(f(), "f"); // expected-error {{static_assert expression is not an integral constant expression}} expected-note {{non-constexpr function 'f' cannot be used in a constant expression}}
6 static_assert(true, "true is not false");
7 static_assert(false, "false is false"); // expected-error {{static_assert failed "false is false"}}
10 static_assert(false, "false is false"); // expected-error {{static_assert failed "false is false"}}
14 static_assert(false, "false is false"); // expected-error {{static_assert failed "false is false"}}
18 static_assert(
[all...]
H A Dliteral-type.cpp3 static_assert(__is_literal(int), "fail");
4 static_assert(__is_literal_type(int), "fail"); // alternate spelling for GCC
5 static_assert(__is_literal(void*), "fail");
7 static_assert(__is_literal(E), "fail");
8 static_assert(__is_literal(decltype(E1)), "fail");
10 static_assert(__is_literal(IAR), "fail");
13 static_assert(__is_literal(Vector), "fail");
14 static_assert(__is_literal(VectorExt), "fail");
45 static_assert(__is_literal(Empty), "fail");
46 static_assert(__is_litera
[all...]
/external/clang/test/Lexer/
H A Dchar-literal-encoding-error.c13 static_assert((unsigned char)'�' == 0xE9, ""); // expected-warning {{illegal character encoding in character literal}}
14 static_assert('��' == 0xE9E9, ""); // expected-warning {{illegal character encoding in character literal}} expected-warning {{multi-character character constant}}
H A Dcxx1z-trigraphs.cpp6 static_assert("??="[0] == '#', ""); // expected-error {{failed}} expected-warning {{trigraph ignored}}
/external/clang/test/CXX/except/except.spec/
H A Dp15.cpp19 static_assert(noexcept(operator delete(0)), "");
20 static_assert(noexcept(operator delete[](0)), "");
26 static_assert(noexcept(operator delete(0, 0.f)), "");
27 static_assert(noexcept(operator delete[](0, 0.f)), "");
31 static_assert(!noexcept(operator delete(0, 0.)), "");
/external/libcxx/test/thread/futures/futures.overview/
H A Dfuture_status.pass.cpp23 static_assert(static_cast<int>(std::future_status::ready) == 0, "");
24 static_assert(static_cast<int>(std::future_status::timeout) == 1, "");
25 static_assert(static_cast<int>(std::future_status::deferred) == 2, "");
H A Dfuture_errc.pass.cpp24 static_assert(static_cast<int>(std::future_errc::future_already_retrieved) == 1, "");
25 static_assert(static_cast<int>(std::future_errc::promise_already_satisfied) == 2, "");
26 static_assert(static_cast<int>(std::future_errc::no_state) == 3, "");
27 static_assert(static_cast<int>(std::future_errc::broken_promise) == 4, "");
/external/libcxx/test/utilities/optional/optional.relops/
H A Dequal.pass.cpp47 static_assert ( o1 == o1 , "" );
48 static_assert ( o1 == o2 , "" );
49 static_assert ( !(o1 == o3), "" );
50 static_assert ( !(o1 == o4), "" );
51 static_assert ( !(o1 == o5), "" );
53 static_assert ( o2 == o1 , "" );
54 static_assert ( o2 == o2 , "" );
55 static_assert ( !(o2 == o3), "" );
56 static_assert ( !(o2 == o4), "" );
57 static_assert ( !(o
[all...]
H A Dless_than.pass.cpp44 static_assert ( !(o1 < o1), "" );
45 static_assert ( !(o1 < o2), "" );
46 static_assert ( o1 < o3 , "" );
47 static_assert ( o1 < o4 , "" );
48 static_assert ( o1 < o5 , "" );
50 static_assert ( !(o2 < o1), "" );
51 static_assert ( !(o2 < o2), "" );
52 static_assert ( o2 < o3 , "" );
53 static_assert ( o2 < o4 , "" );
54 static_assert ( o
[all...]
/external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
H A Dc++11.cc5 static_assert(__cplusplus == 201103L, "wrong c++ standard version");
/external/libcxx/test/utilities/meta/meta.unary/meta.unary.cat/
H A Dlvalue_ref.pass.cpp19 static_assert(!std::is_void<T>::value, "");
21 static_assert(!std::is_null_pointer<T>::value, "");
23 static_assert(!std::is_integral<T>::value, "");
24 static_assert(!std::is_floating_point<T>::value, "");
25 static_assert(!std::is_array<T>::value, "");
26 static_assert(!std::is_pointer<T>::value, "");
27 static_assert( std::is_lvalue_reference<T>::value, "");
28 static_assert(!std::is_rvalue_reference<T>::value, "");
29 static_assert(!std::is_member_object_pointer<T>::value, "");
30 static_assert(!st
[all...]
H A Drvalue_ref.pass.cpp19 static_assert(!std::is_void<T>::value, "");
21 static_assert(!std::is_null_pointer<T>::value, "");
23 static_assert(!std::is_integral<T>::value, "");
24 static_assert(!std::is_floating_point<T>::value, "");
25 static_assert(!std::is_array<T>::value, "");
26 static_assert(!std::is_pointer<T>::value, "");
27 static_assert(!std::is_lvalue_reference<T>::value, "");
28 static_assert( std::is_rvalue_reference<T>::value, "");
29 static_assert(!std::is_member_object_pointer<T>::value, "");
30 static_assert(!st
[all...]
/external/libcxx/test/language.support/support.limits/limits/denorm.style/
H A Dcheck_values.pass.cpp24 static_assert(std::round_indeterminate == -1,
26 static_assert(std::round_toward_zero == 0,
28 static_assert(std::round_to_nearest == 1,
30 static_assert(std::round_toward_infinity == 2,
32 static_assert(std::round_toward_neg_infinity == 3,
34 static_assert(sizeof(test(std::round_to_nearest)) == 1,
36 static_assert(sizeof(test(1)) == 2,
/external/libcxx/test/utilities/meta/meta.unary/meta.unary.comp/
H A Dlvalue_ref.pass.cpp19 static_assert( std::is_reference<T>::value, "");
20 static_assert(!std::is_arithmetic<T>::value, "");
21 static_assert(!std::is_fundamental<T>::value, "");
22 static_assert(!std::is_object<T>::value, "");
23 static_assert(!std::is_scalar<T>::value, "");
24 static_assert( std::is_compound<T>::value, "");
25 static_assert(!std::is_member_pointer<T>::value, "");
/external/clang/test/CXX/dcl.dcl/
H A Dp4-0x.cpp16 static_assert(S(true), "");
17 static_assert(S(false), "not so fast"); // expected-error {{not so fast}}
18 static_assert(T(), "");
19 static_assert(U(), ""); // expected-error {{ambiguous}}
21 static_assert(false, L"\x14hi" "!" R"x(")x"); // expected-error {{static_assert failed L"\024hi!\""}}
/external/libcxx/test/depr/depr.c.headers/
H A Dstdint_h.pass.cpp23 static_assert(sizeof(int8_t)*CHAR_BIT == 8,
25 static_assert(std::is_signed<int8_t>::value,
28 static_assert(sizeof(int16_t)*CHAR_BIT == 16,
30 static_assert(std::is_signed<int16_t>::value,
33 static_assert(sizeof(int32_t)*CHAR_BIT == 32,
35 static_assert(std::is_signed<int32_t>::value,
38 static_assert(sizeof(int64_t)*CHAR_BIT == 64,
40 static_assert(std::is_signed<int64_t>::value,
44 static_assert(sizeof(uint8_t)*CHAR_BIT == 8,
46 static_assert(st
[all...]
/external/libcxx/test/language.support/cstdint/cstdint.syn/
H A Dcstdint.pass.cpp23 static_assert(sizeof(std::int8_t)*CHAR_BIT == 8,
25 static_assert(std::is_signed<std::int8_t>::value,
28 static_assert(sizeof(std::int16_t)*CHAR_BIT == 16,
30 static_assert(std::is_signed<std::int16_t>::value,
33 static_assert(sizeof(std::int32_t)*CHAR_BIT == 32,
35 static_assert(std::is_signed<std::int32_t>::value,
38 static_assert(sizeof(std::int64_t)*CHAR_BIT == 64,
40 static_assert(std::is_signed<std::int64_t>::value,
44 static_assert(sizeof(std::uint8_t)*CHAR_BIT == 8,
46 static_assert(st
[all...]
/external/libcxx/test/language.support/support.limits/limits/round.style/
H A Dcheck_values.pass.cpp24 static_assert(std::denorm_indeterminate == -1,
26 static_assert(std::denorm_absent == 0,
28 static_assert(std::denorm_present == 1,
30 static_assert(sizeof(test(std::denorm_present)) == 1,
32 static_assert(sizeof(test(1)) == 2,
/external/libcxx/test/diagnostics/syserr/
H A Derrc.pass.cpp18 static_assert(static_cast<int>(std::errc::address_family_not_supported) == EAFNOSUPPORT, "");
19 static_assert(static_cast<int>(std::errc::address_in_use) == EADDRINUSE, "");
20 static_assert(static_cast<int>(std::errc::address_not_available) == EADDRNOTAVAIL, "");
21 static_assert(static_cast<int>(std::errc::already_connected) == EISCONN, "");
22 static_assert(static_cast<int>(std::errc::argument_list_too_long) == E2BIG, "");
23 static_assert(static_cast<int>(std::errc::argument_out_of_domain) == EDOM, "");
24 static_assert(static_cast<int>(std::errc::bad_address) == EFAULT, "");
25 static_assert(static_cast<int>(std::errc::bad_file_descriptor) == EBADF, "");
26 static_assert(static_cast<int>(std::errc::bad_message) == EBADMSG, "");
27 static_assert(static_cas
[all...]
/external/libcxx/test/language.support/support.types/
H A Dptrdiff_t.pass.cpp21 static_assert(sizeof(std::ptrdiff_t) == sizeof(void*),
23 static_assert(std::is_signed<std::ptrdiff_t>::value,
25 static_assert(std::is_integral<std::ptrdiff_t>::value,

Completed in 1818 milliseconds

1234567891011>>