Searched refs:static_assert (Results 1 - 25 of 1336) 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(sizeof(short) == 2, "sizeof short is wrong");
10 static_assert(alignof(short) == 2, "alignof short is wrong");
12 static_assert(sizeof(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(alignof(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/Driver/
H A Dppc-dependent-options.cpp46 static_assert(false, "VSX enabled");
50 static_assert(false, "P8V enabled");
54 static_assert(false, "Neither enabled");
/external/clang/test/Modules/
H A Dexplicit-build-relpath.cpp46 static_assert(a == 1, "");
/external/clang/test/CXX/lex/lex.literal/lex.string/
H A Dp4.cpp11 static_assert(p[0] == 'a', "");
12 static_assert(p[1] == '\\', "");
13 static_assert(p[2] == '\n', "");
14 static_assert(p[3] == 'b', "");
15 static_assert(p[4] == '\n', "");
16 static_assert(p[5] == 'c', "");
17 static_assert(p[6] == '\0', "");
/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 Dcomplex-folding.cpp5 static_assert((0.0 + 0.0j) == (0.0 + 0.0j));
6 static_assert((0.0 + 0.0j) != (0.0 + 0.0j)); // expected-error {{static_assert}}
8 static_assert((0.0 + 0.0j) == 0.0);
9 static_assert(0.0 == (0.0 + 0.0j));
10 static_assert(0.0 == 0.0j);
11 static_assert((0.0 + 1.0j) != 0.0);
12 static_assert(1.0 != (0.0 + 0.0j));
13 static_assert(0.0 != 1.0j);
17 static_assert((1.
[all...]
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...]
/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/libchrome/base/
H A Dtemplate_util_unittest.cc20 static_assert(!is_pointer<int>::value, "IsPointer");
21 static_assert(!is_pointer<int&>::value, "IsPointer");
22 static_assert(is_pointer<int*>::value, "IsPointer");
23 static_assert(is_pointer<const int*>::value, "IsPointer");
26 static_assert(!is_array<int>::value, "IsArray");
27 static_assert(!is_array<int*>::value, "IsArray");
28 static_assert(!is_array<int (*)[3]>::value, "IsArray");
29 static_assert(is_array<int[]>::value, "IsArray");
30 static_assert(is_array<const int[]>::value, "IsArray");
31 static_assert(is_arra
[all...]
/external/libweave/third_party/chromium/base/
H A Dtemplate_util_unittest.cc28 static_assert(!is_pointer<int>::value, "IsPointer");
29 static_assert(!is_pointer<int&>::value, "IsPointer");
30 static_assert(is_pointer<int*>::value, "IsPointer");
31 static_assert(is_pointer<const int*>::value, "IsPointer");
34 static_assert(!is_array<int>::value, "IsArray");
35 static_assert(!is_array<int*>::value, "IsArray");
36 static_assert(!is_array<int (*)[3]>::value, "IsArray");
37 static_assert(is_array<int[]>::value, "IsArray");
38 static_assert(is_array<const int[]>::value, "IsArray");
39 static_assert(is_arra
[all...]
/external/libcxx/test/std/thread/futures/futures.overview/
H A Dfuture_status.pass.cpp25 static_assert(static_cast<int>(std::future_status::ready) == 0, "");
26 static_assert(static_cast<int>(std::future_status::timeout) == 1, "");
27 static_assert(static_cast<int>(std::future_status::deferred) == 2, "");
H A Dfuture_errc.pass.cpp26 static_assert(static_cast<int>(std::future_errc::future_already_retrieved) == 1, "");
27 static_assert(static_cast<int>(std::future_errc::promise_already_satisfied) == 2, "");
28 static_assert(static_cast<int>(std::future_errc::no_state) == 3, "");
29 static_assert(static_cast<int>(std::future_errc::broken_promise) == 4, "");
/external/libcxx/test/std/experimental/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 Dgreater_equal.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...]
H A Dgreater_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...]
H A Dless_equal.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...]
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...]
H A Dnot_equal.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...]
/external/clang/test/Headers/
H A Darm64-apple-ios-types.cpp16 static_assert(is_same<char, char>::value, "is_same is broken");
17 static_assert(!is_same<char, char *>::value, "is_same is broken");
29 static_assert(check_type<bool, 1, 1>::value, "bool is wrong");
31 static_assert(check_type<char, 1, 1>::value, "char is wrong");
32 static_assert(check_type<signed char, 1, 1>::value, "signed char is wrong");
33 static_assert(check_type<unsigned char, 1, 1>::value, "unsigned char is wrong");
35 static_assert(check_type<char16_t, 2, 2>::value, "char16_t is wrong");
36 static_assert(check_type<char32_t, 4, 4>::value, "char32_t is wrong");
37 static_assert(check_type<wchar_t, 4, 4>::value, "wchar_t is wrong");
39 static_assert(check_typ
[all...]
H A Dthumbv7-apple-ios-types.cpp16 static_assert(is_same<char, char>::value, "is_same is broken");
17 static_assert(!is_same<char, char *>::value, "is_same is broken");
29 static_assert(check_type<bool, 1, 1>::value, "bool is wrong");
31 static_assert(check_type<char, 1, 1>::value, "char is wrong");
32 static_assert(check_type<signed char, 1, 1>::value, "signed char is wrong");
33 static_assert(check_type<unsigned char, 1, 1>::value, "unsigned char is wrong");
35 static_assert(check_type<char16_t, 2, 2>::value, "char16_t is wrong");
36 static_assert(check_type<char32_t, 4, 4>::value, "char32_t is wrong");
37 static_assert(check_type<wchar_t, 4, 4>::value, "wchar_t is wrong");
39 static_assert(check_typ
[all...]
H A Dx86_64-apple-macosx-types.cpp16 static_assert(is_same<char, char>::value, "is_same is broken");
17 static_assert(!is_same<char, char *>::value, "is_same is broken");
29 static_assert(check_type<bool, 1, 1>::value, "bool is wrong");
31 static_assert(check_type<char, 1, 1>::value, "char is wrong");
32 static_assert(check_type<signed char, 1, 1>::value, "signed char is wrong");
33 static_assert(check_type<unsigned char, 1, 1>::value, "unsigned char is wrong");
35 static_assert(check_type<char16_t, 2, 2>::value, "char16_t is wrong");
36 static_assert(check_type<char32_t, 4, 4>::value, "char32_t is wrong");
37 static_assert(check_type<wchar_t, 4, 4>::value, "wchar_t is wrong");
39 static_assert(check_typ
[all...]

Completed in 492 milliseconds

1234567891011>>