| /ndk/sources/cxx-stl/llvm-libc++/test/re/re.iter/re.tokiter/ |
| types.pass.cpp | 33 static_assert((std::is_same<typename I::regex_type, std::basic_regex<CharT> >::value), ""); 34 static_assert((std::is_same<typename I::value_type, std::sub_match<const CharT*> >::value), ""); 35 static_assert((std::is_same<typename I::difference_type, std::ptrdiff_t>::value), ""); 36 static_assert((std::is_same<typename I::pointer, const std::sub_match<const CharT*>*>::value), ""); 37 static_assert((std::is_same<typename I::reference, const std::sub_match<const CharT*>&>::value), ""); 38 static_assert((std::is_same<typename I::iterator_category, std::forward_iterator_tag>::value), "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/re/re.regex/ |
| types.pass.cpp | 26 static_assert((std::is_same<std::basic_regex<char>::value_type, char>::value), ""); 27 static_assert((std::is_same<std::basic_regex<char>::flag_type, 29 static_assert((std::is_same<std::basic_regex<char>::locale_type, std::locale>::value), ""); 31 static_assert((std::is_same<std::basic_regex<wchar_t>::value_type, wchar_t>::value), ""); 32 static_assert((std::is_same<std::basic_regex<wchar_t>::flag_type, 34 static_assert((std::is_same<std::basic_regex<wchar_t>::locale_type, std::locale>::value), "");
|
| /external/clang/test/CXX/lex/lex.literal/lex.ext/ |
| p8.cpp | 10 static_assert(streq(s, "foobarbazquux"), ""); 16 static_assert(streq(t, "foo"), "");
|
| /external/clang/test/CodeGenCXX/ |
| union-dtor.cpp | 7 Foo() { static_assert(b, "Foo::Foo used"); } 8 ~Foo() { static_assert(b, "Foo::~Foo used"); }
|
| /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}}
|
| /external/clang/test/PCH/ |
| cxx-static_assert.cpp | 12 static_assert(N == 2, "N is not 2!"); 17 // expected-error@12 {{static_assert failed "N is not 2!"}}
|
| /external/clang/test/SemaTemplate/ |
| alignas.cpp | 22 static_assert(sizeof(my_union<A, B, C>) == 16, ""); 23 static_assert(alignof(my_union<A, B, C>) == 8, "");
|
| /libcore/include/ |
| StaticAssert.h | 21 * Similar to C++0x's static_assert. Message argument must be a valid identifier, not a string. 25 #define STATIC_ASSERT(exp, msg) typedef StaticAssert<(bool(exp))> msg[bool(exp) ? 1 : -1]
|
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/container.adaptors/priority.queue/ |
| types.pass.cpp | 51 static_assert((std::is_same<std::priority_queue<int>::container_type, std::vector<int> >::value), ""); 52 static_assert((std::is_same<std::priority_queue<double, std::deque<int> >::container_type, std::deque<int> >::value), ""); 53 static_assert((std::is_same<std::priority_queue<double, std::deque<int> >::value_type, int>::value), ""); 54 static_assert((std::is_same<std::priority_queue<int>::reference, std::vector<int>::reference>::value), ""); 55 static_assert((std::is_same<std::priority_queue<int>::const_reference, std::vector<int>::const_reference>::value), ""); 56 static_assert((std::is_same<std::priority_queue<int>::size_type, std::vector<int>::size_type>::value), ""); 57 static_assert((std::uses_allocator<std::priority_queue<int>, std::allocator<int> >::value), ""); 58 static_assert((!std::uses_allocator<std::priority_queue<int, C>, std::allocator<int> >::value), "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/utilities/memory/pointer.traits/pointer.traits.types/ |
| rebind.pass.cpp | 59 static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>, A<double*> >::value), ""); 60 static_assert((std::is_same<std::pointer_traits<B<int> >::rebind<double>, B1<double> >::value), ""); 61 static_assert((std::is_same<std::pointer_traits<C<char, int> >::rebind<double>, C<double, int> >::value), ""); 62 static_assert((std::is_same<std::pointer_traits<D<char, int> >::rebind<double>, D1<double, int> >::value), ""); 64 static_assert((std::is_same<std::pointer_traits<A<int*> >::rebind<double*>::other, A<double*> >::value), ""); 65 static_assert((std::is_same<std::pointer_traits<B<int> >::rebind<double>::other, B1<double> >::value), ""); 66 static_assert((std::is_same<std::pointer_traits<C<char, int> >::rebind<double>::other, C<double, int> >::value), ""); 67 static_assert((std::is_same<std::pointer_traits<D<char, int> >::rebind<double>::other, D1<double, int> >::value), "");
|
| /external/clang/test/CXX/special/class.copy/ |
| implicit-move.cpp | 47 static_assert(!noexcept(HasCopyConstructor((HasCopyConstructor()))), ""); 49 static_assert(!noexcept(hcc = HasCopyConstructor()), ""); 51 static_assert(!noexcept(HasCopyAssignment((HasCopyAssignment()))), ""); 53 static_assert(!noexcept(hca = HasCopyAssignment()), ""); 55 static_assert(noexcept(HasMoveConstructor((HasMoveConstructor()))), ""); 61 static_assert(noexcept(hma = HasMoveAssignment()), ""); 63 static_assert(!noexcept(HasDestructor((HasDestructor()))), ""); 65 static_assert(!noexcept(hd = HasDestructor()), ""); 127 static_assert(!noexcept(InheritsPrivateMove(InheritsPrivateMove())), ""); 128 static_assert(!noexcept(ContainsPrivateMove(ContainsPrivateMove())), "") [all...] |
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/map/map.cons/ |
| default_noexcept.pass.cpp | 38 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 42 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 46 static_assert(!std::is_nothrow_default_constructible<C>::value, ""); 50 static_assert(!std::is_nothrow_default_constructible<C>::value, "");
|
| dtor_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_destructible<C>::value, ""); 40 static_assert(std::is_nothrow_destructible<C>::value, ""); 44 static_assert(std::is_nothrow_destructible<C>::value, ""); 48 static_assert(!std::is_nothrow_destructible<C>::value, "");
|
| move_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 40 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 44 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 48 static_assert(!std::is_nothrow_move_constructible<C>::value, "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/multimap/multimap.cons/ |
| default_noexcept.pass.cpp | 38 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 42 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 46 static_assert(!std::is_nothrow_default_constructible<C>::value, ""); 50 static_assert(!std::is_nothrow_default_constructible<C>::value, "");
|
| dtor_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_destructible<C>::value, ""); 40 static_assert(std::is_nothrow_destructible<C>::value, ""); 44 static_assert(std::is_nothrow_destructible<C>::value, ""); 48 static_assert(!std::is_nothrow_destructible<C>::value, "");
|
| move_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 40 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 44 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 48 static_assert(!std::is_nothrow_move_constructible<C>::value, "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/multiset/multiset.cons/ |
| default_noexcept.pass.cpp | 38 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 42 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 46 static_assert(!std::is_nothrow_default_constructible<C>::value, ""); 50 static_assert(!std::is_nothrow_default_constructible<C>::value, "");
|
| dtor_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_destructible<C>::value, ""); 40 static_assert(std::is_nothrow_destructible<C>::value, ""); 44 static_assert(std::is_nothrow_destructible<C>::value, ""); 48 static_assert(!std::is_nothrow_destructible<C>::value, "");
|
| move_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 40 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 44 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 48 static_assert(!std::is_nothrow_move_constructible<C>::value, "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/multiset/multiset.special/ |
| swap_noexcept.pass.cpp | 42 static_assert(noexcept(swap(c1, c2)), ""); 47 static_assert(noexcept(swap(c1, c2)), ""); 52 static_assert(noexcept(swap(c1, c2)), ""); 57 static_assert(!noexcept(swap(c1, c2)), "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/set/set.cons/ |
| default_noexcept.pass.cpp | 38 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 42 static_assert(std::is_nothrow_default_constructible<C>::value, ""); 46 static_assert(!std::is_nothrow_default_constructible<C>::value, ""); 50 static_assert(!std::is_nothrow_default_constructible<C>::value, "");
|
| dtor_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_destructible<C>::value, ""); 40 static_assert(std::is_nothrow_destructible<C>::value, ""); 44 static_assert(std::is_nothrow_destructible<C>::value, ""); 48 static_assert(!std::is_nothrow_destructible<C>::value, "");
|
| move_noexcept.pass.cpp | 36 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 40 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 44 static_assert(std::is_nothrow_move_constructible<C>::value, ""); 48 static_assert(!std::is_nothrow_move_constructible<C>::value, "");
|
| /ndk/sources/cxx-stl/llvm-libc++/test/containers/associative/set/set.special/ |
| swap_noexcept.pass.cpp | 42 static_assert(noexcept(swap(c1, c2)), ""); 47 static_assert(noexcept(swap(c1, c2)), ""); 52 static_assert(noexcept(swap(c1, c2)), ""); 57 static_assert(!noexcept(swap(c1, c2)), "");
|