2 REQUIRED_ARGS: -preview=dip1000
9 ubyte[] set(ubyte[1] v) return
11 return this.v[] = v[];
15 /*********************************/
17 // https://github.com/dlang/dmd/pull/9220
23 private this(Values)(scope ref Values values)
31 auto only(Values)(Values vv)
33 return OnlyResult(vv);
37 void test() @nogc @safe pure
42 /************************************/
44 // https://github.com/dlang/dmd/pull/9220
46 auto callWrappedOops(scope string dArgs) {
48 string callWrappedImpl() {
53 /************************************/
59 this(Repeat!(int*) grid) @safe
68 int* foo(return scope Repeat!(int*) grid) @safe
79 alias Repeat(T...) = T;
83 /************************************/
85 // https://issues.dlang.org/show_bug.cgi?id=19387
100 void foo(scope S s) @safe
104 void bar(scope S s) @safe
109 /************************************/
111 // https://issues.dlang.org/show_bug.cgi?id=20675
119 void test(scope ref D d) @safe
122 da ~= D(d.pos, null);
125 /************************************/
129 static D get() @safe;
136 /************************************/
138 // https://issues.dlang.org/show_bug.cgi?id=20682
140 int f1_20682(return scope ref D d) @safe
145 ref int f2_20682(return scope ref D d) @safe
150 void test_20682(scope ref D d) @safe
159 void formattedWrite(immutable char[2] args) @safe
161 scope immutable char[] val = args;
164 void ctfeRead(const ubyte[2] array) @safe
168 foreach_reverse (b; array)
169 result = cast(short) ((result << 8) | b);
172 result = cast(short) ((result << 8) | b);
175 void demangle() @safe
177 static struct DotSplitter
182 @property bool empty() const { return !s.length; }
184 @property const(char)[] front() const return
186 immutable i = indexOfDot();
192 private ptrdiff_t indexOfDot() const
198 foreach (comp; DotSplitter(""))
204 void fileCtor() @safe
222 // Missing test coverage
223 int*[4] testArray() @safe
225 return typeof(return).init;
228 /************************************/
230 // https://issues.dlang.org/show_bug.cgi?id=21209
231 void testForeach(T)(const(T)[] ts)
234 g++; // force impure for https://issues.dlang.org/show_bug.cgi?id=20150
239 foreach_reverse(c0; ts)