Searched refs:array (Results 1 - 25 of 1617) sorted by relevance

1234567891011>>

/external/clang/test/CodeGen/
H A D2007-11-29-ArraySizeFromInitializer.c3 int array[] = {1, 2, 3, 4, 5}; variable
H A D2003-07-22-ArrayAccessTypeSafety.c4 void test(int* array, long long N) { argument
5 array[N] = N[array] = 33;
H A D2004-03-09-LargeArrayInitializers.c9 const int array[] = { local
31 return array[x];
/external/v8/test/mjsunit/regress/
H A Dregress-98773.js28 // Calling Array.sort on an external array is not supposed to crash.
30 var array = new Int16Array(23);
31 array[7] = 7; array[9] = 9;
32 assertEquals(23, array.length);
33 assertEquals(7, array[7]);
34 assertEquals(9, array[9]);
36 Array.prototype.sort.call(array);
37 assertEquals(23, array.length);
38 assertEquals(7, array[2
[all...]
/external/chromium/android/
H A Dexecinfo.cc7 int backtrace(void **array, int size) { return 0; } argument
9 char **backtrace_symbols(void *const *array, int size) { return 0; } argument
11 void backtrace_symbols_fd (void *const *array, int size, int fd) {} argument
H A Dexecinfo.h8 int backtrace(void **array, int size);
10 char **backtrace_symbols(void *const *array, int size);
12 void backtrace_symbols_fd (void *const *array, int size, int fd);
/external/v8/test/mjsunit/
H A Darray-shift.js28 // Check that shifting array of holes keeps it as array of holes
30 var array = new Array(10);
31 array.shift();
32 assertFalse(0 in array);
35 // Now check the case with array of holes and some elements on prototype.
38 var array = new Array(len);
42 assertEquals(len, array.length);
43 for (var i = 0; i < array.length; i++) {
44 assertEquals(array[
[all...]
H A Darray-splice.js28 // Check that splicing array of holes keeps it as array of holes
31 var array = new Array(10);
32 var spliced = array.splice(1, 1, 'one', 'two');
36 assertEquals(11, array.length);
37 assertFalse(0 in array, "0 in array");
38 assertTrue(1 in array);
39 assertTrue(2 in array);
40 assertFalse(3 in array, "
[all...]
H A Darray-unshift.js28 // Check that unshifting array of holes keeps the original array
29 // as array of holes
31 var array = new Array(10);
32 assertEquals(13, array.unshift('1st', '2ns', '3rd'));
33 assertTrue(0 in array);
34 assertTrue(1 in array);
35 assertTrue(2 in array);
36 assertFalse(3 in array);
45 var array
[all...]
/external/clang/test/CodeGenCXX/
H A D2005-02-13-BadDynamicInit.cpp5 unsigned array[1]; member in struct:Data
9 Data shared_null = { shared_null.array };
H A D2005-02-14-BitFieldOffset.cpp7 unsigned short array[1]; member in struct:QVectorTypedData
11 X->array[0] = 123;
H A Dmicrosoft-abi-array-cookies.cpp11 ClassWithoutDtor *array = new ClassWithoutDtor[42]; local
14 delete [] array;
26 ClassWithDtor *array = new ClassWithDtor[42]; local
34 delete [] array;
48 ClassWithAlignment *array = new ClassWithAlignment[42]; local
56 delete [] array;
/external/stlport/test/unit/
H A Dbnegate_test.cpp32 int array [4] = { 4, 9, 7, 1 }; local
34 sort(array, array + 4, binary_negate<greater<int> >(greater<int>()));
35 CPPUNIT_ASSERT(array[0]==1);
36 CPPUNIT_ASSERT(array[1]==4);
37 CPPUNIT_ASSERT(array[2]==7);
38 CPPUNIT_ASSERT(array[3]==9);
42 int array [4] = { 4, 9, 7, 1 }; local
43 sort(array, array
[all...]
H A Dgreater_test.cpp33 int array[4] = { 3, 1, 4, 2 }; local
34 sort(array, array + 4, greater<int>() );
36 CPPUNIT_ASSERT(array[0]==4);
37 CPPUNIT_ASSERT(array[1]==3);
38 CPPUNIT_ASSERT(array[2]==2);
39 CPPUNIT_ASSERT(array[3]==1);
43 int array [4] = { 3, 1, 4, 2 }; local
44 sort(array, array
[all...]
H A Dless_test.cpp33 int array [4] = { 3, 1, 4, 2 }; local
34 sort(array, array + 4, less<int>());
36 CPPUNIT_ASSERT(array[0]==1);
37 CPPUNIT_ASSERT(array[1]==2);
38 CPPUNIT_ASSERT(array[2]==3);
39 CPPUNIT_ASSERT(array[3]==4);
43 int array [4] = { 3, 1, 4, 2 }; local
44 sort(array, array
[all...]
H A Dbind_test.cpp55 int array [3] = { 1, 2, 3 }; local
56 int* p = remove_if((int*)array, (int*)array + 3, bind1st(less<int>(), 2));
58 CPPUNIT_ASSERT(p == &array[2]);
59 CPPUNIT_ASSERT(array[0] == 1);
60 CPPUNIT_ASSERT(array[1] == 2);
62 for_each((int*)array, (int*)array + 3, bind1st(pre_increment(), 1));
63 CPPUNIT_ASSERT(array[0] == 2);
64 CPPUNIT_ASSERT(array[
75 int array [3] = { 1, 2, 3 }; local
84 int array [3] = { 1, 2, 3 }; local
104 int array[3] = { 1, 2, 3 }; local
143 A array[3]; local
[all...]
H A Dfinsert_test.cpp33 char const* array [] = { "laurie", "jennifer", "leisa" }; local
36 fit = copy(array, array + 3, front_insert_iterator<deque <char const*> >(names));
38 CPPUNIT_ASSERT(names[0]==array[2]);
39 CPPUNIT_ASSERT(names[1]==array[1]);
40 CPPUNIT_ASSERT(names[2]==array[0]);
42 copy(array, array + 3, fit);
43 CPPUNIT_ASSERT(names[3]==array[2]);
44 CPPUNIT_ASSERT(names[4]==array[
50 char const* array [] = { "laurie", "jennifer", "leisa" }; local
[all...]
/external/webkit/Source/WebCore/page/
H A DCrypto.cpp41 bool isIntegerArray(ArrayBufferView* array) argument
43 return array->isByteArray()
44 || array->isUnsignedByteArray()
45 || array->isShortArray()
46 || array->isUnsignedShortArray()
47 || array->isIntArray()
48 || array->isUnsignedIntArray();
57 void Crypto::getRandomValues(ArrayBufferView* array, ExceptionCode& ec) argument
60 if (!array || !isIntegerArray(array)) {
[all...]
/external/clang/test/Sema/
H A Dwarn-char-subscripts.c4 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 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/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Expressions/
H A D11.4.6.js53 var array = new Array();
55 array[item++] = new TestCase( SECTION, "+('')", 0, +("") );
56 array[item++] = new TestCase( SECTION, "+(' ')", 0, +(" ") );
57 array[item++] = new TestCase( SECTION, "+(\\t)", 0, +("\t") );
58 array[item++] = new TestCase( SECTION, "+(\\n)", 0, +("\n") );
59 array[item++] = new TestCase( SECTION, "+(\\r)", 0, +("\r") );
60 array[item++] = new TestCase( SECTION, "+(\\f)", 0, +("\f") );
62 array[item++] = new TestCase( SECTION, "+(String.fromCharCode(0x0009)", 0, +(String.fromCharCode(0x0009)) );
63 array[item++] = new TestCase( SECTION, "+(String.fromCharCode(0x0020)", 0, +(String.fromCharCode(0x0020)) );
64 array[ite
[all...]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Boolean/
H A D15.6.4.3.js37 var array = new Array();
40 array[item++] = new TestCase( "15.8.6.4", "new Boolean(1)", true, (new Boolean(1)).valueOf() );
42 array[item++] = new TestCase( "15.8.6.4", "new Boolean(0)", false, (new Boolean(0)).valueOf() );
43 array[item++] = new TestCase( "15.8.6.4", "new Boolean(-1)", true, (new Boolean(-1)).valueOf() );
44 array[item++] = new TestCase( "15.8.6.4", "new Boolean('1')", true, (new Boolean("1")).valueOf() );
45 array[item++] = new TestCase( "15.8.6.4", "new Boolean('0')", true, (new Boolean("0")).valueOf() );
46 array[item++] = new TestCase( "15.8.6.4", "new Boolean(true)", true, (new Boolean(true)).valueOf() );
47 array[item++] = new TestCase( "15.8.6.4", "new Boolean(false)", false, (new Boolean(false)).valueOf() );
48 array[item++] = new TestCase( "15.8.6.4", "new Boolean('true')", true, (new Boolean("true")).valueOf() );
49 array[ite
[all...]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/LexicalConventions/
H A D7.7.3.js48 var array = new Array();
51 array[item++] = new TestCase( SECTION, "0", 0, 0 );
52 array[item++] = new TestCase( SECTION, "1", 1, 1 );
53 array[item++] = new TestCase( SECTION, "2", 2, 2 );
54 array[item++] = new TestCase( SECTION, "3", 3, 3 );
55 array[item++] = new TestCase( SECTION, "4", 4, 4 );
56 array[item++] = new TestCase( SECTION, "5", 5, 5 );
57 array[item++] = new TestCase( SECTION, "6", 6, 6 );
58 array[item++] = new TestCase( SECTION, "7", 7, 7 );
59 array[ite
[all...]
/external/clang/test/SemaCXX/
H A Dstatic-array-member.cpp4 static int array[]; member in struct:X0
10 int X0::array[sizeof(X0) * 2]; member in class:X0
14 static T array[]; member in struct:X1
18 T X1<T, N>::array[N]; member in class:X1
H A Dwarn-char-subscripts.cpp5 int array[1] = { 0 }; local
7 int val = array[subscript]; // expected-warning{{array subscript is of type 'char'}}
12 int array[1] = { 0 }; local
14 int val = subscript[array]; // expected-warning{{array subscript is of type 'char'}}
/external/icu4c/samples/layout/
H A Darraymem.h12 #define ARRAY_SIZE(array) (sizeof array / sizeof array[0])
18 #define DELETE_ARRAY(array) free((void *) (array))
20 #define GROW_ARRAY(array,newSize) realloc((void *) (array), (newSize) * sizeof (array)[0])

Completed in 336 milliseconds

1234567891011>>