/external/clang/test/CodeGen/ |
2007-11-29-ArraySizeFromInitializer.c | 3 int array[] = {1, 2, 3, 4, 5}; variable
|
2003-07-22-ArrayAccessTypeSafety.c | 4 void test(int* array, long long N) { 5 array[N] = N[array] = 33;
|
2004-03-09-LargeArrayInitializers.c | 9 const int array[] = { local 31 return array[x];
|
/external/libcxx/test/std/containers/sequences/array/array.zero/ |
tested_elsewhere.pass.cpp | 10 // <array> 12 // support for zero-sized array 14 #include <array>
|
/external/kmod/shared/ |
array.h | 6 * Declaration of struct array is in header because we may want to embed the 9 struct array { struct 10 void **array; member in struct:array 16 void array_init(struct array *array, size_t step); 17 int array_append(struct array *array, const void *element); 18 int array_append_unique(struct array *array, const void *element); 19 void array_pop(struct array *array) [all...] |
array.c | 25 #include <shared/array.h> 27 /* basic pointer array growing in steps */ 30 static int array_realloc(struct array *array, size_t new_total) 32 void *tmp = realloc(array->array, sizeof(void *) * new_total); 35 array->array = tmp; 36 array->total = new_total; 40 void array_init(struct array *array, size_t step [all...] |
/external/clang/test/Sema/ |
warn-tautological-compare.c | 15 if (!b) {} // expected-warning {{address of array 'b' will always evaluate to 'true'}} 16 if (b == 0) {} // expected-warning {{comparison of array 'b' equal to a null pointer is always false}} 17 if (!c.x) {} // expected-warning {{address of array 'c.x' will always evaluate to 'true'}} 18 if (c.x == 0) {} // expected-warning {{comparison of array 'c.x' equal to a null pointer is always false}} 19 if (!str) {} // expected-warning {{address of array 'str' will always evaluate to 'true'}} 20 if (0 == str) {} // expected-warning {{comparison of array 'str' equal to a null pointer is always false}} 23 int array[2]; variable 26 if (!array) { // expected-warning {{address of array 'array' will always evaluate to 'true'} [all...] |
warn-char-subscripts.c | 4 int array[1] = { 0 }; local 6 int val = array[subscript]; // expected-warning{{array subscript is of type 'char'}} 10 int array[1] = { 0 }; local 12 int val = subscript[array]; // expected-warning{{array subscript is of type 'char'}} 16 int *array = 0; local 18 int val = array[subscript]; // expected-warning{{array subscript is of type 'char'}} 22 int *array = 0 local 29 int *array = 0; local 34 int array[1] = { 0 }; local 40 int array[1] = { 0 }; local 47 int array[1] = { 0 }; local 54 int array[1] = { 0 }; local 61 int array[1] = { 0 }; local [all...] |
/external/compiler-rt/test/asan/TestCases/ |
atoi_strict.c | 17 void test1(char *array) { 19 memset(array, '1', 10); 20 array[9] = 'a'; 21 int r = atoi(array); 25 void test2(char *array) { 27 array[9] = 'a'; 28 int r = atoi(array + 9); 32 void test3(char *array) { 34 memset(array, ' ', 10); 35 array[9] = '-' 42 char *array = (char*)malloc(10); local [all...] |
atol_strict.c | 17 void test1(char *array) { 19 memset(array, '1', 10); 20 array[9] = 'a'; 21 long r = atol(array); 25 void test2(char *array) { 27 array[9] = 'a'; 28 long r = atol(array + 9); 32 void test3(char *array) { 34 memset(array, ' ', 10); 35 array[9] = '-' 42 char *array = (char*)malloc(10); local [all...] |
atoll_strict.c | 20 void test1(char *array) { 22 memset(array, '1', 10); 23 array[9] = 'a'; 24 long long r = atoll(array); 28 void test2(char *array) { 30 array[9] = 'a'; 31 long long r = atoll(array + 9); 35 void test3(char *array) { 37 memset(array, ' ', 10); 38 array[9] = '-' 45 char *array = (char*)malloc(10); local [all...] |
strtoll_strict.c | 33 void test1(char *array, char *endptr) { 35 long long r = strtoll(array, &endptr, 3); 36 assert(array + 2 == endptr); 40 void test2(char *array, char *endptr) { 42 array[2] = 'z'; 43 long long r = strtoll(array, &endptr, 35); 44 assert(array + 2 == endptr); 48 void test3(char *array, char *endptr) { 50 memset(array, 0, 8); 51 ASAN_POISON_MEMORY_REGION(array, 8) 90 char* array = array0 + 8; local [all...] |
/art/test/559-checker-rtp-ifnotnull/src/ |
Main.java | 39 int[] array = null; local 41 if (array == null) { 42 array = new int[5]; 45 array = new int[10]; 47 array[i] = i; 50 array.hashCode();
|
/external/libcxx/test/std/language.support/support.limits/support.limits.general/ |
array.version.pass.cpp | 11 // <array> feature macros 19 #include <array> 25 // ensure that the macros that are supposed to be defined in <array> are defined.
|
/external/clang/test/CodeGenCXX/ |
2005-02-13-BadDynamicInit.cpp | 5 unsigned array[1]; member in struct:Data 9 Data shared_null = { shared_null.array };
|
/external/clang/test/SemaCXX/ |
parentheses.cpp | 5 bool test(Foo f, int *array) 7 return false && false || array[f.get()]; // expected-warning {{'&&' within '||'}} expected-note {{parentheses}}
|
/external/libcxx/test/std/containers/sequences/array/array.cons/ |
deduct.fail.cpp | 10 // <array> 16 // array(T, U...) -> array<T, 1 + sizeof...(U)>; 21 #include <array> 25 // std::array is explicitly allowed to be initialized with A a = { init-list };. 35 std::array arr{1,2,3L}; // expected-error {{no viable constructor or deduction guide for deduction of template arguments of 'array'}}
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
array.hpp | 2 // detail/array.hpp 17 # include <array> 22 using std::array;
|
/external/mesa3d/src/egl/main/ |
eglarray.c | 38 * Grow the size of the array. 41 _eglGrowArray(_EGLArray *array) 46 new_size = array->MaxSize; 47 while (new_size <= array->Size) 50 elems = realloc(array->Elements, new_size * sizeof(array->Elements[0])); 52 _eglLog(_EGL_DEBUG, "failed to grow %s array to %d", 53 array->Name, new_size); 57 array->Elements = elems; 58 array->MaxSize = new_size 70 _EGLArray *array; local [all...] |
/external/minigbm/ |
helpers_array.c | 23 struct drv_array *array; local 25 array = calloc(1, sizeof(*array)); 28 array->allocations = 2; 29 array->items = calloc(array->allocations, sizeof(*array->items)); 30 array->item_size = item_size; 31 return array; 34 void *drv_array_append(struct drv_array *array, void *data [all...] |
/art/test/535-deopt-and-inlining/src/ |
Main.java | 30 public static void doCall(int[] array) { 32 deopt(array); 38 public static void deopt(int[] array) { 43 $inline$deopt(array); 49 public static void $inline$deopt(int[] array) { 50 array[0] = 1; 51 array[1] = 1;
|
/external/grpc-grpc/src/core/lib/surface/ |
metadata_array.cc | 28 void grpc_metadata_array_init(grpc_metadata_array* array) { 29 GRPC_API_TRACE("grpc_metadata_array_init(array=%p)", 1, (array)); 30 memset(array, 0, sizeof(*array)); 33 void grpc_metadata_array_destroy(grpc_metadata_array* array) { 34 GRPC_API_TRACE("grpc_metadata_array_destroy(array=%p)", 1, (array)); 35 gpr_free(array->metadata);
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/ |
stable_partition.pass.cpp | 42 P array[] = local 55 const unsigned size = sizeof(array)/sizeof(array[0]); 56 Iter r = std::stable_partition(Iter(array), Iter(array+size), odd_first()); 57 assert(base(r) == array + 4); 58 assert(array[0] == P(1, 1)); 59 assert(array[1] == P(1, 2)); 60 assert(array[2] == P(3, 1)); 61 assert(array[3] == P(3, 2)) 71 P array[] = local 111 P array[] = local 140 P array[] = local 169 P array[] = local 198 P array[] = local 227 P array[] = local 256 P array[] = local 298 std::unique_ptr<int> array[size]; local [all...] |
/external/eigen/doc/snippets/ |
Map_inner_stride.cpp | 1 int array[12]; variable 2 for(int i = 0; i < 12; ++i) array[i] = i; 4 (array, 6) // the inner stride has already been passed as template parameter
|
Map_outer_stride.cpp | 1 int array[12]; variable 2 for(int i = 0; i < 12; ++i) array[i] = i; 3 cout << Map<MatrixXi, 0, OuterStride<> >(array, 3, 3, OuterStride<>(4)) << endl;
|