/haiku-buildtools/legacy/gcc/libstdc++/std/ |
H A D | slice.h | 1 // The template and inlines for the -*- C++ -*- slice class. 37 class slice class 40 slice (); 41 slice (size_t, size_t, size_t); 53 inline slice::slice () {} function in class:slice 55 inline slice::slice (size_t __o, size_t __d, size_t __s) function in class:slice 59 slice::start () const 63 slice [all...] |
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/ |
H A D | slice3err.go | 10 var slice []int var 20 _ = array[::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice" 21 _ = array[i::] // ERROR "middle index required in 3-index slice" "final index required in 3-index slice" 22 _ = array[:j:] // ERROR "final index required in 3-index slice" 23 _ = array[i:j:] // ERROR "final index required in 3-index slice" 24 _ = array[::k] // ERROR "middle index required in 3-index slice" 25 _ = array[i::k] // ERROR "middle index required in 3-index slice" 29 _ = slice[ [all...] |
H A D | complit1.go | 21 _ = [3]int{1, 2, 3}[:] // ERROR "slice of unaddressable value" 22 _ = m[0][:] // ERROR "slice of unaddressable value" 23 _ = f()[:] // ERROR "slice of unaddressable value"
|
H A D | named.go | 55 slice Slice = make(Slice, 10) 237 asSlice(slice) 238 isSlice(slice) 243 asSlice(slice[0:4]) 244 isSlice(slice[0:4]) 245 asSlice(slice[3:8]) 246 isSlice(slice[3:8]) 250 slice = nil 255 asSlice(*&slice) 256 isSlice(*&slice) [all...] |
H A D | index0.go | 7 // Generate test of index and slice bounds checks.
|
H A D | index1.go | 7 // Generate test of index and slice bounds checks.
|
H A D | index2.go | 7 // Generate test of index and slice bounds checks.
|
H A D | recover2.go | 44 defer mustRecover("slice") 49 defer mustRecover("slice")
|
H A D | named1.go | 21 var slice Slice var 61 asString(String(slice)) // ok
|
H A D | slice3.go | 7 // Test run-time behavior of 3-index slice expressions. 55 const Cap = 10 // cap of slice, array 57 for _, base := range []string{"array", "slice"} { 109 slice = array[:]
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/headers/valarray/ |
H A D | types_std.cc | 24 typedef std::slice t1;
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/slice_array/ |
H A D | array_assignment.cc | 28 using std::slice; 31 w[slice(0, 3, 3)] = v[slice(2, 3, 3)]; 37 std::slice_array<int> t __attribute__((unused)) = v[slice(0, 10, 1)];
|
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/fixedbugs/ |
H A D | issue4251.go | 7 // Issue 4251: slice with inverted range is an error. 12 return s[2:1] // ERROR "invalid slice index|inverted slice range" 16 return a[2:1] // ERROR "invalid slice index|inverted slice range" 20 return s[2:1] // ERROR "invalid slice index|inverted slice range"
|
H A D | issue4232.go | 12 _ = a[-1:] // ERROR "invalid slice index -1|index out of bounds" 13 _ = a[:-1] // ERROR "invalid slice index -1|index out of bounds" 17 _ = s[-1] // ERROR "invalid slice index -1|index out of bounds" 18 _ = s[-1:] // ERROR "invalid slice index -1|index out of bounds" 19 _ = s[:-1] // ERROR "invalid slice index -1|index out of bounds" 24 _ = c[-1:] // ERROR "invalid slice index -1|index out of bounds" 25 _ = c[:-1] // ERROR "invalid slice index -1|index out of bounds" 30 _ = t[-1:] // ERROR "invalid slice index -1|index out of bounds" 31 _ = t[:-1] // ERROR "invalid slice index -1|index out of bounds"
|
H A D | bug457.go | 7 // Issue 4197: growing a slice of zero-width elements
|
H A D | bug481.go | 7 // Returning an index into a conversion from string to slice caused a
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/ |
H A D | variadic164.C | 5 template <typename...> void slice(); 6 template <int Index, typename...> using slice_result = decltype(slice<Index>);
|
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/slice/ |
H A D | 1.cc | 20 // Test slice class invariants 29 std::slice s(start, size, stride); 36 std::slice s(start, size, stride); 37 std::slice t = s; 44 std::slice s(start, size, stride); 45 std::slice t;
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/ |
H A D | pr35065.c | 128 slice_t slice; member in struct:decoder_sys_t 172 slice_t slice; local 178 slice.i_delta_pic_order_cnt0 = bs_read_se( &s ); 180 if( slice.i_frame_num != p_sys->slice.i_frame_num 181 || slice.i_nal_ref_idc != p_sys->slice.i_nal_ref_idc ) 182 if( (slice.i_bottom_field_flag != -1) 183 && (slice.i_bottom_field_flag != p_sys->slice [all...] |
/haiku-buildtools/gcc/libstdc++-v3/testsuite/26_numerics/valarray/ |
H A D | 40691.cc | 28 std::slice s(0,3,4);
|
H A D | dr543.cc | 21 // DR 543. valarray slice default constructor 27 std::valarray<int> v2 = v1[std::slice()];
|
/haiku-buildtools/gcc/gcc/testsuite/go.test/test/fixedbugs/issue4879.dir/ |
H A D | a.go | 13 type slice []int type 25 root: unsafe.Pointer(&slice{}),
|
/haiku-buildtools/gcc/gcc/testsuite/gcc.dg/torture/ |
H A D | pr61346.c | 9 struct slice struct 30 struct decode_rune_ret decode_rune (struct slice) __attribute__ ((noinline)); 32 decode_rune (struct slice s) 50 struct slice token; 53 struct ret scanwords (struct slice, _Bool) __attribute__ ((noinline)); 56 scanwords (struct slice data, _Bool ateof) 59 struct slice token; 66 struct slice s; 108 struct slice s; 149 struct slice [all...] |
/haiku-buildtools/gcc/libstdc++-v3/include/bits/ |
H A D | slice_array.h | 49 * The slice class represents a one-dimensional subset of an array, 56 * For example, with an array of size 10, and a slice with offset 1, size 3 59 class slice class 62 /// Construct an empty slice. 63 slice(); 66 * @brief Construct a slice. 69 * @param __d Number of elements in slice. 72 slice(size_t __o, size_t __d, size_t __s); 74 /// Return array offset of first slice element. 76 /// Return size of slice 90 slice::slice() function in class:slice 94 slice::slice(size_t __o, size_t __d, size_t __s) function in class:slice [all...] |
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/torture/ |
H A D | pr49039.C | 31 S slice (size_t Start, size_t End) const function in struct:S 42 return make_pair (slice (0, Idx), slice (Idx + 1, ~size_t (0)));
|