HomeSort by relevance Sort by last modified time
    Searched refs:static_assert (Results 1 - 25 of 826) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/Lexer/
cxx0x_keyword.cpp 2 int static_assert; /* expected-error {{expected unqualified-id}} */ variable
char-literal-encoding-error.c 13 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}}
  /external/clang/test/CodeGenCXX/
static-assert.cpp 4 static_assert(true, "");
7 static_assert(true, "");
  /external/clang/test/Driver/
x86_64-nacl-types.cpp 7 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(sizeof(void*) == 4, "sizeof void * is wrong")
    [all...]
  /external/clang/test/CXX/except/except.spec/
p15.cpp 15 static_assert(noexcept(operator delete(0)), "");
16 static_assert(noexcept(operator delete[](0)), "");
22 static_assert(noexcept(operator delete(0, 0.f)), "");
23 static_assert(noexcept(operator delete[](0, 0.f)), "");
27 static_assert(!noexcept(operator delete(0, 0.)), "");
  /external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
c++11.cc 5 static_assert(__cplusplus == 201103L, "wrong c++ standard version");
  /external/clang/test/SemaCXX/
static-assert.cpp 5 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(N == 2, "N is not 2!"); // expected-error {{static_assert failed "N is not 2!"}
    [all...]
literal-type.cpp 3 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_literal(LiteralType), "fail")
    [all...]
constexpr-steps.cpp 16 static_assert(steps((MAX - 4)), ""); // ok
17 static_assert(steps((MAX - 3)), ""); // expected-error {{constant}} expected-note{{call}}
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/denorm.style/
check_values.pass.cpp 24 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,
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.unary/meta.unary.comp/
lvalue_ref.pass.cpp 19 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, "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.unary/meta.unary.cat/
lvalue_ref.pass.cpp 19 static_assert(!std::is_void<T>::value, "");
20 static_assert(!std::is_integral<T>::value, "");
21 static_assert(!std::is_floating_point<T>::value, "");
22 static_assert(!std::is_array<T>::value, "");
23 static_assert(!std::is_pointer<T>::value, "");
24 static_assert( std::is_lvalue_reference<T>::value, "");
25 static_assert(!std::is_rvalue_reference<T>::value, "");
26 static_assert(!std::is_member_object_pointer<T>::value, "");
27 static_assert(!std::is_member_function_pointer<T>::value, "");
28 static_assert(!std::is_enum<T>::value, "")
    [all...]
rvalue_ref.pass.cpp 19 static_assert(!std::is_void<T>::value, "");
20 static_assert(!std::is_integral<T>::value, "");
21 static_assert(!std::is_floating_point<T>::value, "");
22 static_assert(!std::is_array<T>::value, "");
23 static_assert(!std::is_pointer<T>::value, "");
24 static_assert(!std::is_lvalue_reference<T>::value, "");
25 static_assert( std::is_rvalue_reference<T>::value, "");
26 static_assert(!std::is_member_object_pointer<T>::value, "");
27 static_assert(!std::is_member_function_pointer<T>::value, "");
28 static_assert(!std::is_enum<T>::value, "")
    [all...]
void.pass.cpp 19 static_assert( std::is_void<T>::value, "");
20 static_assert(!std::is_integral<T>::value, "");
21 static_assert(!std::is_floating_point<T>::value, "");
22 static_assert(!std::is_array<T>::value, "");
23 static_assert(!std::is_pointer<T>::value, "");
24 static_assert(!std::is_lvalue_reference<T>::value, "");
25 static_assert(!std::is_rvalue_reference<T>::value, "");
26 static_assert(!std::is_member_object_pointer<T>::value, "");
27 static_assert(!std::is_member_function_pointer<T>::value, "");
28 static_assert(!std::is_enum<T>::value, "")
    [all...]
  /external/clang/test/CXX/dcl.dcl/
p4-0x.cpp 16 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!\""}}
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
stdint_h.pass.cpp 23 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(std::is_unsigned<uint8_t>::value
    [all...]
stddef_h.pass.cpp 25 static_assert(sizeof(size_t) == sizeof(void*),
27 static_assert(std::is_unsigned<size_t>::value,
29 static_assert(std::is_integral<size_t>::value,
31 static_assert(sizeof(ptrdiff_t) == sizeof(void*),
33 static_assert(std::is_signed<ptrdiff_t>::value,
35 static_assert(std::is_integral<ptrdiff_t>::value,
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/cstdint/cstdint.syn/
cstdint.pass.cpp 23 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(std::is_unsigned<std::uint8_t>::value
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/round.style/
check_values.pass.cpp 24 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,
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/diagnostics/syserr/
errc.pass.cpp 18 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_cast<int>(std::errc::broken_pipe) == EPIPE, "")
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.types/
ptrdiff_t.pass.cpp 21 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,
size_t.pass.cpp 21 static_assert(sizeof(std::size_t) == sizeof(void*),
23 static_assert(std::is_unsigned<std::size_t>::value,
25 static_assert(std::is_integral<std::size_t>::value,
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.overview/
future_status.pass.cpp 23 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, "");
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/meta/meta.unary/meta.unary.prop/
is_const.pass.cpp 19 static_assert(!std::is_const<T>::value, "");
20 static_assert( std::is_const<const T>::value, "");
21 static_assert(!std::is_const<volatile T>::value, "");
22 static_assert( std::is_const<const volatile T>::value, "");
35 static_assert(!std::is_const<int&>::value, "");
36 static_assert(!std::is_const<const int&>::value, "");
is_volatile.pass.cpp 19 static_assert(!std::is_volatile<T>::value, "");
20 static_assert(!std::is_volatile<const T>::value, "");
21 static_assert( std::is_volatile<volatile T>::value, "");
22 static_assert( std::is_volatile<const volatile T>::value, "");
35 static_assert(!std::is_volatile<int&>::value, "");
36 static_assert(!std::is_volatile<volatile int&>::value, "");

Completed in 403 milliseconds

1 2 3 4 5 6 7 8 91011>>