/external/clang/test/CodeGenCXX/ |
H A D | static-assert.cpp | 4 static_assert(true, ""); 7 static_assert(true, "");
|
/external/clang/test/Frontend/ |
H A D | x86_64-nacl-types.cpp | 7 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 D | ppc-dependent-options.cpp | 46 static_assert(false, "VSX enabled"); 50 static_assert(false, "P8V enabled"); 54 static_assert(false, "Neither enabled");
|
/external/clang/test/Modules/ |
H A D | explicit-build-relpath.cpp | 46 static_assert(a == 1, "");
|
/external/clang/test/CXX/lex/lex.literal/lex.string/ |
H A D | p4.cpp | 11 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 D | 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(sizeo [all...] |
H A D | 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");
|
H A D | complex-folding.cpp | 5 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 D | 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( [all...] |
/external/clang/test/Lexer/ |
H A D | 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}}
|
H A D | cxx1z-trigraphs.cpp | 6 static_assert("??="[0] == '#', ""); // expected-error {{failed}} expected-warning {{trigraph ignored}}
|
/external/clang/test/CXX/except/except.spec/ |
H A D | 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/libchrome/base/ |
H A D | template_util_unittest.cc | 20 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 D | template_util_unittest.cc | 28 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 D | future_status.pass.cpp | 25 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 D | future_errc.pass.cpp | 26 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 D | 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 ( !(o [all...] |
H A D | greater_equal.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 ( !(o [all...] |
H A D | greater_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 ( !(o [all...] |
H A D | less_equal.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 ( (o [all...] |
H A D | 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 ( (o [all...] |
H A D | not_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 ( (o [all...] |
/external/clang/test/Headers/ |
H A D | arm64-apple-ios-types.cpp | 16 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 D | thumbv7-apple-ios-types.cpp | 16 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 D | x86_64-apple-macosx-types.cpp | 16 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...] |