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

1 2 3 4 5 6 7 8 91011>>

  /external/clang/test/CodeGenCXX/
static-assert.cpp 4 static_assert(true, "");
7 static_assert(true, "");
  /external/clang/test/Frontend/
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/SemaCXX/
predefined-expr.cpp 6 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(sizeof(__func__) == 11, "operator()")
    [all...]
funcdname.cpp 5 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");
ms_integer_suffix.cpp 5 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__, "");
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...]
  /external/clang/test/Lexer/
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}}
cxx1z-trigraphs.cpp 6 static_assert("??="[0] == '#', ""); // expected-error {{failed}} expected-warning {{trigraph ignored}}
  /external/clang/test/CXX/except/except.spec/
p15.cpp 19 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/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/
c++11.cc 5 static_assert(__cplusplus == 201103L, "wrong c++ standard version");
  /external/libcxx/test/utilities/optional/optional.relops/
equal.pass.cpp 47 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 ( !(o2 == o5), "" )
    [all...]
less_than.pass.cpp 44 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 ( o2 < o5 , "" )
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.relops/
equal.pass.cpp 47 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 ( !(o2 == o5), "" )
    [all...]
less_than.pass.cpp 44 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 ( o2 < o5 , "" )
    [all...]
  /external/libcxx/test/utilities/meta/meta.unary/meta.unary.cat/
lvalue_ref.pass.cpp 19 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(!std::is_member_function_pointer<T>::value, "")
    [all...]
rvalue_ref.pass.cpp 19 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(!std::is_member_function_pointer<T>::value, "")
    [all...]
  /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, "");
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(!std::is_member_function_pointer<T>::value, "")
    [all...]
rvalue_ref.pass.cpp 19 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(!std::is_member_function_pointer<T>::value, "")
    [all...]
  /external/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,
  /external/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/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, "");
  /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!\""}}
  /external/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...]
  /external/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...]

Completed in 944 milliseconds

1 2 3 4 5 6 7 8 91011>>