/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(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(sizeof(void*) == 4, "sizeof void * is wrong") [all...] |
/external/clang/test/Driver/ |
ppc-dependent-options.cpp | 46 static_assert(false, "VSX enabled"); 50 static_assert(false, "P8V enabled"); 54 static_assert(false, "Neither enabled");
|
/external/pdfium/core/fxcodec/gif/ |
cfx_gif.cpp | 12 static_assert(sizeof(CFX_CFX_GifImageInfo) == 9, 14 static_assert(sizeof(CFX_GifPalette) == 3, 16 static_assert(sizeof(CFX_GifPlainTextExtension) == 13, 18 static_assert(sizeof(CFX_GifGraphicControlExtension) == 5, 20 static_assert(sizeof(CFX_GifHeader) == 6, 22 static_assert(sizeof(CFX_GifLocalScreenDescriptor) == 7,
|
/external/clang/test/Modules/ |
explicit-build-relpath.cpp | 46 static_assert(a == 1, "");
|
/external/clang/test/PCH/ |
cxx1z-init-statement.cpp | 9 static_assert(test_if(-1) == -1, ""); 10 static_assert(test_if(0) == 0, ""); 14 static_assert(test_switch(-1) == -1, ""); 15 static_assert(test_switch(0) == 0, ""); 16 static_assert(test_switch(1) == 1, "");
|
pragma-pointers_to_members.cpp | 20 static_assert(sizeof(int S0::*) == 12, ""); 27 static_assert(sizeof(int S1::*) == 4, ""); 31 static_assert(sizeof(int S2::*) == 4, ""); 32 static_assert(sizeof(int S0::*) == 12, "");
|
/external/clang/test/CXX/lex/lex.literal/lex.string/ |
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/ |
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");
|
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.0 + 0.0j) == (0.0 + 0.0j)); // expected-error {{static_assert} [all...] |
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...] |
/cts/tests/tests/nativemedia/aaudio/jni/ |
test_aaudio_misc.cpp | 29 static_assert(0 == AAUDIO_DIRECTION_OUTPUT, ENUM_CANNOT_CHANGE); 30 static_assert(1 == AAUDIO_DIRECTION_INPUT, ENUM_CANNOT_CHANGE); 32 static_assert(-1 == AAUDIO_FORMAT_INVALID, ENUM_CANNOT_CHANGE); 33 static_assert(0 == AAUDIO_FORMAT_UNSPECIFIED, ENUM_CANNOT_CHANGE); 34 static_assert(1 == AAUDIO_FORMAT_PCM_I16, ENUM_CANNOT_CHANGE); 35 static_assert(2 == AAUDIO_FORMAT_PCM_FLOAT, ENUM_CANNOT_CHANGE); 37 static_assert(0 == AAUDIO_OK, ENUM_CANNOT_CHANGE); 38 static_assert(-900 == AAUDIO_ERROR_BASE, ENUM_CANNOT_CHANGE); 39 static_assert(-899 == AAUDIO_ERROR_DISCONNECTED, ENUM_CANNOT_CHANGE); 40 static_assert(-898 == AAUDIO_ERROR_ILLEGAL_ARGUMENT, ENUM_CANNOT_CHANGE) [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/libtextclassifier/util/base/ |
integral_types.h | 48 // static_assert exists only since C++11, so we need an ifdef. 50 static_assert(sizeof(int) == 4, "Our typedefs depend on int being 32 bits"); 51 static_assert(sizeof(uint32) == 4, "wrong size"); 52 static_assert(sizeof(int32) == 4, "wrong size"); 53 static_assert(sizeof(uint8) == 1, "wrong size"); 54 static_assert(sizeof(uint16) == 2, "wrong size"); 55 static_assert(sizeof(char32) == 4, "wrong size"); 56 static_assert(sizeof(int64) == 8, "wrong size");
|
/external/libcxx/test/libcxx/numerics/c.math/ |
constexpr-fns.pass.cpp | 26 static_assert(std::__libcpp_isnan_or_builtin(0.) == false, ""); 27 static_assert(std::__libcpp_isinf_or_builtin(0.0) == false, ""); 28 static_assert(std::__libcpp_isfinite_or_builtin(0.0) == true, "");
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/libcxx/numerics/c.math/ |
constexpr-fns.pass.cpp | 26 static_assert(std::__libcpp_isnan_or_builtin(0.) == false, ""); 27 static_assert(std::__libcpp_isinf_or_builtin(0.0) == false, ""); 28 static_assert(std::__libcpp_isfinite_or_builtin(0.0) == true, "");
|
/frameworks/av/media/libstagefright/foundation/tests/ |
TypeTraits_test.cpp | 38 static_assert(!std::is_integral<A>::value, "enums should not be integral"); 39 static_assert(!std::is_integral<UA>::value, "enums should not be integral"); 40 static_assert(!std::is_integral<IA>::value, "enums should not be integral"); 41 static_assert(is_integral_or_enum<A>::value, "enums should be integral_or_enum"); 42 static_assert(is_integral_or_enum<UA>::value, "enums should be integral_or_enum"); 43 static_assert(is_integral_or_enum<IA>::value, "enums should be integral_or_enum"); 44 static_assert(is_integral_or_enum<int>::value, "ints should be integral_or_enum"); 45 static_assert(is_integral_or_enum<unsigned>::value, "unsigned ints should be integral_or_enum"); 46 static_assert(!is_integral_or_enum<float>::value, "floats should not be integral_or_enum"); 50 static_assert(!std::is_unsigned<UA>::value [all...] |
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/optional/optional.relops/ |
equal.pass.cpp | 43 static_assert ( o1 == o1 , "" ); 44 static_assert ( o1 == o2 , "" ); 45 static_assert ( !(o1 == o3), "" ); 46 static_assert ( !(o1 == o4), "" ); 47 static_assert ( !(o1 == o5), "" ); 49 static_assert ( o2 == o1 , "" ); 50 static_assert ( o2 == o2 , "" ); 51 static_assert ( !(o2 == o3), "" ); 52 static_assert ( !(o2 == o4), "" ); 53 static_assert ( !(o2 == o5), "" ) [all...] |
greater_equal.pass.cpp | 40 static_assert ( (o1 >= o1), "" ); 41 static_assert ( (o1 >= o2), "" ); 42 static_assert ( !(o1 >= o3), "" ); 43 static_assert ( !(o1 >= o4), "" ); 44 static_assert ( !(o1 >= o5), "" ); 46 static_assert ( (o2 >= o1), "" ); 47 static_assert ( (o2 >= o2), "" ); 48 static_assert ( !(o2 >= o3), "" ); 49 static_assert ( !(o2 >= o4), "" ); 50 static_assert ( !(o2 >= o5), "" ) [all...] |
greater_than.pass.cpp | 40 static_assert ( !(o1 > o1), "" ); 41 static_assert ( !(o1 > o2), "" ); 42 static_assert ( !(o1 > o3), "" ); 43 static_assert ( !(o1 > o4), "" ); 44 static_assert ( !(o1 > o5), "" ); 46 static_assert ( !(o2 > o1), "" ); 47 static_assert ( !(o2 > o2), "" ); 48 static_assert ( !(o2 > o3), "" ); 49 static_assert ( !(o2 > o4), "" ); 50 static_assert ( !(o2 > o5), "" ) [all...] |
less_equal.pass.cpp | 40 static_assert ( (o1 <= o1), "" ); 41 static_assert ( (o1 <= o2), "" ); 42 static_assert ( (o1 <= o3), "" ); 43 static_assert ( (o1 <= o4), "" ); 44 static_assert ( (o1 <= o5), "" ); 46 static_assert ( (o2 <= o1), "" ); 47 static_assert ( (o2 <= o2), "" ); 48 static_assert ( (o2 <= o3), "" ); 49 static_assert ( (o2 <= o4), "" ); 50 static_assert ( (o2 <= o5), "" ) [all...] |
less_than.pass.cpp | 40 static_assert ( !(o1 < o1), "" ); 41 static_assert ( !(o1 < o2), "" ); 42 static_assert ( (o1 < o3), "" ); 43 static_assert ( (o1 < o4), "" ); 44 static_assert ( (o1 < o5), "" ); 46 static_assert ( !(o2 < o1), "" ); 47 static_assert ( !(o2 < o2), "" ); 48 static_assert ( (o2 < o3), "" ); 49 static_assert ( (o2 < o4), "" ); 50 static_assert ( (o2 < o5), "" ) [all...] |