/external/stlport/test/unit/ |
H A D | assert_header_test.c | 8 #include <assert.h>
|
/external/clang/test/SemaCXX/ |
H A D | 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/ |
H A D | 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));
|
H A D | memalign2.c | 16 #include <assert.h> 31 assert(sizeof(long int) == sizeof(void*)); 41 // assert failures (as reclaimable blocks cannot be splitted). 42 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024)); 46 // an assert. Note that the test has to be run with a --free-list-vol 50 piece = malloc(1024 * 1000); assert (piece); 55 p = memalign(1024 * 1024, 4 * 1024 * 1024 + 1); assert(0 == (long)p % (1024 * 1024)); 56 piece = malloc(1024 * 100); assert (piece); 60 p = memalign(0, 100); assert(0 == (long)p % 8); 61 p = memalign(1, 100); assert( [all...] |
H A D | accounting.c | 6 #include <assert.h> 15 assert(p != NULL); 18 assert(r == NULL);
|
H A D | partial_load.c | 3 #include <assert.h> 11 assert(sizeof(long) == sizeof(void*)); 15 assert(p); 21 assert(p); 29 assert(p); 35 assert(p);
|
H A D | execve2.c | 1 #include <assert.h> 10 assert(0); // shouldn't get here
|
/external/clang/test/SemaTemplate/ |
H A D | 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/webp/src/dec/ |
H A D | layer.c | 12 #include <assert.h> 24 assert(dec); 25 assert(dec->layer_data_size_ > 0);
|
/external/valgrind/main/memcheck/tests/darwin/ |
H A D | 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") );
|
H A D | aio.c | 1 #include <assert.h> 35 // assert( aio_return(&a) < 0); // (aiocbp hasn't been inited) 38 assert( aio_read(&a) < 0); // invalid fd 42 assert(a.aio_fildes >= 0); 44 assert( aio_read(&a) < 0); // unaddressable aio_buf 49 assert( aio_read(&a) == 0 ); 51 assert( aio_read(&a) < 0 ); // (don't crash on the repeated &a) 57 assert( aio_return(&a) > 0 ); // XXX: (undefined value error here) 61 assert( aio_return(&a) < 0 ); // (repeated aio_return(); fails because 67 assert( [all...] |
/external/icu4c/common/ |
H A D | 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(). 25 # include <assert.h> 26 # define U_ASSERT(exp) assert(exp)
|
/external/valgrind/main/helgrind/tests/ |
H A D | 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( [all...] |
H A D | 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( [all...] |
H A D | locked_vs_unlocked2.c | 5 #include <assert.h> 27 r= pthread_mutex_lock(&mx1a); assert(!r); 28 r= pthread_mutex_lock(&mx1b); assert(!r); 30 r= pthread_mutex_unlock(&mx1b); assert(!r); 31 r= pthread_mutex_unlock(&mx1a); assert(!r); 32 r= pthread_mutex_destroy(&mx1a); assert(!r); 43 r= pthread_mutex_lock(&mx2a); assert(!r); 44 r= pthread_mutex_lock(&mx2b); assert(!r); 46 r= pthread_mutex_unlock(&mx2b); assert(!r); 47 r= pthread_mutex_unlock(&mx2a); assert(! [all...] |
H A D | 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( [all...] |
H A D | 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( [all...] |
H A D | locked_vs_unlocked3.c | 10 #include <assert.h> 26 r= pthread_mutex_lock(&mx); assert(!r); 27 r= pthread_mutex_lock(&mx); assert(!r); 29 r= pthread_mutex_unlock(&mx); assert(!r); 30 r= pthread_mutex_unlock(&mx); assert(!r); 48 assert(!r); 50 assert(!r); 51 r= pthread_mutex_init(&mx, &attr); assert(!r); 53 r= pthread_create(&child2, NULL, child_fn2, NULL); assert(!r); 54 r= pthread_create(&child1, NULL, child_fn1, NULL); assert(! [all...] |
/external/valgrind/main/memcheck/tests/x86/ |
H A D | espindola2.c | 3 #include <assert.h> 12 assert(x);
|
/external/valgrind/main/drd/tests/ |
H A D | 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( [all...] |
/external/llvm/lib/Target/R600/ |
H A D | AMDILDeviceInfo.cpp | 35 assert(!is64bit && "This device does not support 64bit pointers!"); 36 assert(!is64on32bit && "This device does not support 64bit" 42 assert(!is64bit && "This device does not support 64bit pointers!"); 43 assert(!is64on32bit && "This device does not support 64bit" 49 assert(!is64bit && "This device does not support 64bit pointers!"); 50 assert(!is64on32bit && "This device does not support 64bit" 56 assert(!is64bit && "This device does not support 64bit pointers!"); 57 assert(!is64on32bit && "This device does not support 64bit" 63 assert(!is64bit && "This device does not support 64bit pointers!"); 64 assert(!is64on32bi [all...] |
/external/valgrind/main/massif/tests/ |
H A D | 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/ |
H A D | debug.h | 12 #include <assert.h> 39 assert(expression); \ 44 assert(false); \ 49 assert(false); \
|
H A D | InitializeDll.cpp | 27 assert(0 && "InitProcess(): Failed to allocate TLS area for init flag"); 33 assert(0 && "InitProcess(): Failed to initalize global pool"); 38 assert(0 && "InitProcess(): Failed to initalize parse context"); 71 assert(0 && "InitThread(): Process hasn't been initalised."); 84 assert(0 && "InitThread(): Unable to set init flag."); 103 assert(0 && "DetachThread(): Unable to clear init flag.");
|
/external/flac/include/FLAC/ |
H A D | assert.h | 35 /* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */ 37 #include <assert.h> 38 #define FLAC__ASSERT(x) assert(x)
|