/external/clang/test/Lexer/ |
H A D | cxx0x_keyword.cpp | 2 int static_assert; /* expected-error {{expected unqualified-id}} */ variable
|
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}}
|
/external/clang/test/CodeGenCXX/ |
H A D | static-assert.cpp | 4 static_assert(true, ""); 7 static_assert(true, "");
|
/external/clang/test/CXX/except/except.spec/ |
H A D | 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/clang/test/Driver/ |
H A D | 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(sizeo [all...] |
/external/clang/test/SemaCXX/ |
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...] |
H A D | 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_litera [all...] |
H A D | constexpr-steps.cpp | 16 static_assert(steps((MAX - 4)), ""); // ok 17 static_assert(steps((MAX - 3)), ""); // expected-error {{constant}} expected-note{{call}}
|
H A D | trivial-constructor.cpp | 5 static_assert(__has_trivial_constructor(T1), "T1 has trivial constructor!"); 10 static_assert(!__has_trivial_constructor(T2), "T2 has a user-declared constructor!"); 15 static_assert(!__has_trivial_constructor(T3), "T3 has a virtual function!"); 19 static_assert(!__has_trivial_constructor(T4), "T4 has a virtual base class!"); 23 static_assert(__has_trivial_constructor(T5), "All the direct base classes of T5 have trivial constructors!"); 30 static_assert(__has_trivial_constructor(T6), "All nonstatic data members of T6 have trivial constructors!"); 35 static_assert(!__has_trivial_constructor(T7), "t4 does not have a trivial constructor!"); 39 static_assert(!__has_trivial_constructor(T8), "The base class T2 does not have a trivial constructor!");
|
H A D | trivial-destructor.cpp | 5 static_assert(__has_trivial_destructor(T1), "T1 has trivial destructor!"); 10 static_assert(!__has_trivial_destructor(T2), "T2 has a user-declared destructor!"); 15 static_assert(__has_trivial_destructor(T3), "T3 has a virtual function (but still a trivial destructor)!"); 19 static_assert(__has_trivial_destructor(T4), "T4 has a virtual base class! (but still a trivial destructor)!"); 23 static_assert(__has_trivial_destructor(T5), "All the direct base classes of T5 have trivial destructors!"); 30 static_assert(__has_trivial_destructor(T6), "All nonstatic data members of T6 have trivial destructors!"); 35 static_assert(!__has_trivial_destructor(T7), "t2 does not have a trivial destructor!"); 39 static_assert(!__has_trivial_destructor(T8), "The base class T2 does not have a trivial destructor!");
|
H A D | alignof-sizeof-reference.cpp | 7 static_assert(alignof(r) == 1, "bad alignment"); // expected-warning {{GNU extension}} 8 static_assert(alignof(char&) == 1, "bad alignment"); 9 static_assert(sizeof(r) == 1, "bad size"); 10 static_assert(sizeof(char&) == 1, "bad size");
|
H A D | alignment-of-derived-class.cpp | 10 static_assert(__alignof(A) == 16, "A should be aligned to 16 bytes"); 15 static_assert(__alignof(B1) == 16, "B1 should be aligned to 16 bytes"); 20 static_assert(__alignof(B2) == 16, "B2 should be aligned to 16 bytes"); 25 static_assert(__alignof(B3) == 16, "B3 should be aligned to 16 bytes"); 30 static_assert(__alignof(B4) == 16, "B4 should be aligned to 16 bytes"); 35 static_assert(__alignof(B5) == 16, "B5 should be aligned to 16 bytes"); 40 static_assert(__alignof(B6) == 32, "B6 should be aligned to 32 bytes");
|
H A D | member-pointer-ms.cpp | 5 // 2012, which supports C++11 and static_assert. It should pass for both 64-bit 37 static_assert(sizeof(int IncSingle::*) == kSingleDataSize, ""); 38 static_assert(sizeof(int IncMultiple::*) == kMultipleDataSize, ""); 39 static_assert(sizeof(int IncVirtual::*) == kVirtualDataSize, ""); 40 static_assert(sizeof(void (IncSingle::*)()) == kSingleFunctionSize, ""); 41 static_assert(sizeof(void (IncMultiple::*)()) == kMultipleFunctionSize, ""); 42 static_assert(sizeof(void (IncVirtual::*)()) == kVirtualFunctionSize, ""); 47 static_assert(sizeof(int IncUnspecified::*) == kUnspecifiedDataSize, ""); 48 static_assert(sizeof(void (IncUnspecified::*)()) == kUnspecifiedFunctionSize, ""); 56 static_assert(sizeo [all...] |
H A D | generic-selection.cpp | 13 static_assert(A<int>::id == 1, "fail"); 14 static_assert(A<float>::id == 2, "fail"); 15 static_assert(A<double, double>::id == 3, "fail"); 44 static_assert(TypeMask<int, long, short>::result == 7, "fail"); 45 static_assert(TypeMask<float, short>::result == 12, "fail"); 46 static_assert(TypeMask<int, float, float>::result == 9, "fail");
|
/external/chromium_org/tools/gyp/test/mac/clang-cxx-language-standard/ |
H A D | c++11.cc | 5 static_assert(__cplusplus == 201103L, "wrong c++ standard version");
|
/external/clang/test/CXX/dcl.dcl/ |
H A D | 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/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
H A D | p18.cpp | 21 static_assert(is_same<decltype(((r))), float const&>::value, 23 static_assert(is_same<decltype(x), float>::value, "should be float"); 24 static_assert(is_same<decltype((x)), const float&>::value, 26 static_assert(is_same<decltype(r), float&>::value, "should be float&"); 27 static_assert(is_same<decltype(ir), int&>::value, "should be int&"); 28 static_assert(is_same<decltype((ir)), int&>::value, "should be int&"); 29 static_assert(is_same<decltype(irc), const int&>::value, 31 static_assert(is_same<decltype((irc)), const int&>::value, 37 static_assert(is_same<decltype(x), float>::value, "should be float"); 38 static_assert(is_sam [all...] |
/external/clang/test/CXX/special/class.copy/ |
H A D | p12-0x.cpp | 6 static_assert(B == __has_trivial_copy(T), ""); 7 static_assert(B == __is_trivially_constructible(T, T), ""); 8 static_assert(B == __is_trivially_constructible(T, const T &), ""); 9 static_assert(B == __is_trivially_constructible(T, T &&), ""); 57 static_assert(!__is_trivially_constructible(MutableTemplateCtorMember, const MutableTemplateCtorMember &), ""); 58 static_assert(__is_trivially_constructible(MutableTemplateCtorMember, MutableTemplateCtorMember &&), ""); 64 static_assert(!__is_trivially_constructible(MutableTemplateCtorMember2, const MutableTemplateCtorMember2 &), ""); 65 static_assert(__is_trivially_constructible(MutableTemplateCtorMember2, MutableTemplateCtorMember2 &&), ""); 76 static_assert(!__has_trivial_copy(TNT), "lie deliberately for gcc compatibility"); 77 static_assert(__is_trivially_constructibl [all...] |
H A D | p25-0x.cpp | 6 static_assert(B == __has_trivial_assign(T), ""); 7 static_assert(B == __is_trivially_assignable(T&, T), ""); 8 static_assert(B == __is_trivially_assignable(T&, const T &), ""); 9 static_assert(B == __is_trivially_assignable(T&, T &&), ""); 10 static_assert(B == __is_trivially_assignable(T&&, T), ""); 11 static_assert(B == __is_trivially_assignable(T&&, const T &), ""); 12 static_assert(B == __is_trivially_assignable(T&&, T &&), ""); 58 static_assert(!__is_trivially_assignable(MutableTemplateCtorMember, const MutableTemplateCtorMember &), ""); 59 static_assert(__is_trivially_assignable(MutableTemplateCtorMember, MutableTemplateCtorMember &&), ""); 70 static_assert(!__has_trivial_assig [all...] |
/external/clang/test/CXX/class/ |
H A D | p6-0x.cpp | 11 static_assert(__is_trivial(Trivial), "Trivial is not trivial"); 12 static_assert(!__is_trivial(NonTrivial1), "NonTrivial1 is trivial"); 13 static_assert(!__is_trivial(NonTrivial2), "NonTrivial2 is trivial"); 14 static_assert(!__is_trivial(NonTrivial3), "NonTrivial3 is trivial"); 15 static_assert(!__is_trivial(NonTrivial4), "NonTrivial4 is trivial"); 16 static_assert(!__is_trivial(NonTrivial5), "NonTrivial5 is trivial"); 31 static_assert(!__is_trivial(NonTrivial6), "NonTrivial6 is trivial");
|
/external/clang/test/SemaTemplate/ |
H A D | instantiate-array.cpp | 8 #define static_assert(__b, __m) \ macro 16 static_assert(sizeof(IntArray<10>) == sizeof(int) * 10, "Array size mismatch"); 17 static_assert(sizeof(IntArray<1>) == sizeof(int) * 1, "Array size mismatch"); 23 static_assert(sizeof(TenElementArray<int>) == sizeof(int) * 10, "Array size mismatch"); 29 static_assert(sizeof(Array<int, 10>) == sizeof(int) * 10, "Array size mismatch");
|
/external/clang/test/CXX/dcl.decl/dcl.init/ |
H A D | p5.cpp | 43 #define static_assert(B, S) typedef int assert_failed[(B) ? 1 : -1]; macro 44 static_assert(__has_trivial_constructor(S), ""); 45 static_assert(__has_trivial_constructor(T), ""); 46 static_assert(__has_trivial_constructor(U), ""); 47 static_assert(!__has_trivial_constructor(V), ""); 48 static_assert(!__has_trivial_constructor(W), "");
|
/external/clang/test/PCH/ |
H A D | cxx1y-default-initializer.cpp | 23 static_assert(A{}.z == 3, ""); 24 static_assert(A{1}.z == 4, ""); 25 static_assert(A{.y = 5}.z == 5, ""); // expected-warning {{C99}} 26 static_assert(A{3, .y = 1}.z == 4, ""); // expected-warning {{C99}} 27 static_assert(make<int>().z == 3, ""); 28 static_assert(make<int>(12).z == 15, "");
|
H A D | cxx_exprs.cpp | 33 static_assert(true_value, "true_value is true"); 34 static_assert(!false_value, "false_value is false"); 44 static_assert(char_value == 97, "char_value is correct"); 45 static_assert(wchar_t_value == 305, "wchar_t_value is correct"); 46 static_assert(char16_t_value == 231, "char16_t_value is correct"); 47 static_assert(char32_t_value == 8706, "char32_t_value is correct");
|
H A D | cxx11-exception-spec.cpp | 15 static_assert(!noexcept(f<false>()), ""); 16 static_assert(noexcept(f<true>()), "");
|