HomeSort by relevance Sort by last modified time
    Searched refs:assert (Results 1 - 25 of 2727) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/stlport/test/unit/
assert_header_test.c 8 #include <assert.h>
  /ndk/tests/device/test-gnustl-full/unit/
assert_header_test.c 8 #include <assert.h>
  /ndk/tests/device/test-stlport/unit/
assert_header_test.c 8 #include <assert.h>
  /external/clang/test/SemaCXX/
warn-string-conversion.cpp 5 void assert(bool condition);
10 assert("error"); // expected-warning{{implicit conversion turns string literal into bool: 'const char [6]' to 'bool'}}
11 assert(0 && "error");
  /external/valgrind/main/memcheck/tests/
malloc_usable.c 1 #include <assert.h>
14 assert(99 == malloc_usable_size(x));
15 assert( 0 == malloc_usable_size(NULL));
16 assert( 0 == malloc_usable_size((void*)0xdeadbeef));
memalign2.c 16 #include <assert.h>
32 assert(sizeof(long int) == sizeof(void*));
34 p = memalign(0, 100); assert(0 == (long)p % 8);
35 p = memalign(1, 100); assert(0 == (long)p % 8);
36 p = memalign(2, 100); assert(0 == (long)p % 8);
37 p = memalign(3, 100); assert(0 == (long)p % 8);
38 p = memalign(4, 100); assert(0 == (long)p % 8);
39 p = memalign(5, 100); assert(0 == (long)p % 8);
41 p = memalign(7, 100); assert(0 == (long)p % 8);
42 p = memalign(8, 100); assert(0 == (long)p % 8)
    [all...]
  /external/clang/bindings/python/tests/cindex/
test_cursor.py 37 assert len(tu_nodes) == 3
39 assert tu_nodes[0].kind == CursorKind.STRUCT_DECL
40 assert tu_nodes[0].spelling == 's0'
41 assert tu_nodes[0].is_definition() == True
42 assert tu_nodes[0].location.file.name == 't.c'
43 assert tu_nodes[0].location.line == 4
44 assert tu_nodes[0].location.column == 8
47 assert len(s0_nodes) == 2
48 assert s0_nodes[0].kind == CursorKind.FIELD_DECL
49 assert s0_nodes[0].spelling == 'a
    [all...]
test_diagnostics.py 12 assert len(tu.diagnostics) == 1
13 assert tu.diagnostics[0].severity == Diagnostic.Warning
14 assert tu.diagnostics[0].location.line == 1
15 assert tu.diagnostics[0].location.column == 11
16 assert (tu.diagnostics[0].spelling ==
23 assert len(tu.diagnostics) == 1
24 assert tu.diagnostics[0].severity == Diagnostic.Warning
25 assert tu.diagnostics[0].location.line == 2
26 assert tu.diagnostics[0].location.column == 7
27 assert 'incompatible' in tu.diagnostics[0].spellin
    [all...]
test_type.py 28 assert all(x.kind == CursorKind.FIELD_DECL for x in fields)
30 assert fields[0].spelling == 'a'
31 assert not fields[0].type.is_const_qualified()
32 assert fields[0].type.kind == TypeKind.INT
33 assert fields[0].type.get_canonical().kind == TypeKind.INT
35 assert fields[1].spelling == 'b'
36 assert not fields[1].type.is_const_qualified()
37 assert fields[1].type.kind == TypeKind.TYPEDEF
38 assert fields[1].type.get_canonical().kind == TypeKind.INT
39 assert fields[1].type.get_declaration().spelling == 'I
    [all...]
test_cursor_kind.py 4 assert CursorKind.UNEXPOSED_DECL.name is 'UNEXPOSED_DECL'
7 assert CursorKind.UNEXPOSED_DECL in CursorKind.get_all_kinds()
8 assert CursorKind.TRANSLATION_UNIT in CursorKind.get_all_kinds()
13 assert CursorKind.UNEXPOSED_DECL.is_declaration()
14 assert CursorKind.TYPE_REF.is_reference()
15 assert CursorKind.DECL_REF_EXPR.is_expression()
16 assert CursorKind.UNEXPOSED_STMT.is_statement()
17 assert CursorKind.INVALID_FILE.is_invalid()
29 assert len(group) == 0
31 assert len(group) ==
    [all...]
  /external/webp/src/dec/
layer.c 12 #include <assert.h>
23 assert(dec);
24 assert(dec->layer_data_size_ > 0);
  /external/valgrind/main/exp-ptrcheck/tests/
pth_specific.c 2 #include <assert.h>
22 assert( 0 == pthread_key_create ( &key, NULL ) );
23 assert( 0 == pthread_setspecific( key, x ) );
25 assert( 0 != z );
30 assert(z == x);
31 assert(z[1] == 'z');
  /external/valgrind/main/memcheck/tests/darwin/
env.c 1 #include <assert.h>
15 assert( 0 == strcmp(getenv("MYVAR"), val1) );
18 assert( 0 == strcmp(getenv("MYVAR"), val2) );
21 assert( 0 == strcmp(getenv("MYVAR"), val2) );
24 assert( 0 == strcmp(getenv("MYVAR"), "xxxx") );
27 assert( NULL == getenv("MYVAR") );
  /dalvik/libdex/
DexOpcodes.cpp 26 #include <assert.h>
553 assert(op >= 0 && op < kNumPackedOpcodes);
  /external/clang/test/SemaTemplate/
rdar9173693.cpp 4 template< bool C > struct assert { }; struct
6 template< typename Pred > assert<false> assert_not_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type ); // expected-error 5 {{}}
  /external/icu4c/common/
uassert.h 13 * By default, U_ASSERT just wraps the C library assert macro.
14 * By changing the definition here, the assert behavior for ICU can be changed
15 * without affecting other non-ICU uses of the C library assert().
27 #include <assert.h>
28 #define U_ASSERT(exp) assert(exp)
  /external/valgrind/main/helgrind/tests/
tc15_laog_lockdel.c 5 #include <assert.h>
19 assert(mx1);
20 assert(mx2);
22 r = pthread_mutex_init( mx1, NULL ); assert(r==0);
23 r = pthread_mutex_init( mx2, NULL ); assert(r==0);
27 r = pthread_mutex_lock( mx1 ); assert(r==0);
28 r = pthread_mutex_lock( mx2 ); assert(r==0);
30 r = pthread_mutex_unlock( mx1 ); assert(r==0);
31 r = pthread_mutex_unlock( mx2 ); assert(r==0);
35 r = pthread_mutex_lock( mx2 ); assert(r==0); /* error *
    [all...]
tc13_laog1.c 5 #include <assert.h>
14 r = pthread_mutex_init( &mx1, NULL ); assert(r==0);
15 r = pthread_mutex_init( &mx2, NULL ); assert(r==0);
17 r = pthread_mutex_lock( &mx1 ); assert(r==0);
18 r = pthread_mutex_lock( &mx2 ); assert(r==0);
20 r = pthread_mutex_unlock( &mx1 ); assert(r==0);
21 r = pthread_mutex_unlock( &mx2 ); assert(r==0);
23 r = pthread_mutex_lock( &mx2 ); assert(r==0); /* error */
24 r = pthread_mutex_lock( &mx1 ); assert(r==0);
26 r = pthread_mutex_unlock( &mx1 ); assert(r==0)
    [all...]
tc10_rec_lock.c 11 #include <assert.h>
21 assert(r==0);
23 assert(r==0);
25 assert(r==0);
28 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
30 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
32 r = pthread_mutex_lock( &mx1 ); assert(r == 0);
35 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
37 r = pthread_mutex_unlock( &mx1 ); assert(r == 0);
39 r = pthread_mutex_unlock( &mx1 ); assert(r == 0)
    [all...]
tc12_rwl_trivial.c 9 #include <assert.h>
24 r = pthread_rwlock_init( &rwl, NULL ); assert(r == 0);
26 r = pthread_rwlock_wrlock( &rwl ); assert(r == 0);
27 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
29 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0);
30 r = pthread_rwlock_rdlock( &rwl ); assert(r == 0);
31 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
32 r = pthread_rwlock_unlock( &rwl ); assert(r == 0);
35 r = pthread_rwlock_unlock( &rwl ); assert(OS_IS_DARWIN || r == 0);
37 r = pthread_rwlock_destroy( &rwl ); assert(r == 0)
    [all...]
  /external/valgrind/main/memcheck/tests/x86/
espindola2.c 3 #include <assert.h>
12 assert(x);
  /external/valgrind/main/drd/tests/
trylock.c 15 #include <assert.h>
30 r = pthread_rwlock_init(&rwlock, NULL); assert(r == 0);
32 r = pthread_rwlock_wrlock(&rwlock); assert(r == 0);
33 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
35 r = pthread_rwlock_trywrlock(&rwlock); assert(r == 0);
36 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
39 r = pthread_rwlock_timedwrlock(&rwlock, &abs_timeout); assert(r == 0);
40 r = pthread_rwlock_unlock(&rwlock); assert(r == 0);
43 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0);
44 r = pthread_rwlock_rdlock(&rwlock); assert(r == 0)
    [all...]
  /external/valgrind/main/massif/tests/
malloc_usable.c 1 #include <assert.h>
14 assert(104 == malloc_usable_size(x) ||
16 assert( 0 == malloc_usable_size(NULL));
17 assert( 0 == malloc_usable_size((void*)0xdeadbeef));
  /external/webkit/Source/ThirdParty/ANGLE/src/compiler/
debug.h 12 #include <assert.h>
36 #define ASSERT(expression) do { \
38 Trace("Assert failed: %s(%d): "#expression"\n", __FUNCTION__, __LINE__); \
39 assert(expression); \
44 assert(false); \
49 assert(false); \
  /bionic/libc/include/
assert.h 1 /* $OpenBSD: assert.h,v 1.12 2006/01/31 10:53:51 hshoexer Exp $ */
2 /* $NetBSD: assert.h,v 1.6 1994/10/26 00:55:44 cgd Exp $ */
37 * @(#)assert.h 8.2 (Berkeley) 1/21/94
41 * Unlike other ANSI header files, <assert.h> may usefully be included
47 #undef assert macro
51 # define assert(e) ((void)0) macro
54 # define _assert(e) assert(e)
56 # define assert(e) ((e) ? (void)0 : __assert2(__FILE__, __LINE__, __func__, #e)) macro
58 # define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e)) macro

Completed in 521 milliseconds

1 2 3 4 5 6 7 8 91011>>