Remove -preview=dip25 from the test-suite

Since it is now enabled by default, we can do a simple clean-up and not provide it.
This commit is contained in:
Geod24 2020-12-30 17:47:13 +09:00 committed by The Dlang Bot
parent 34ef34d652
commit 01b0156a0f
8 changed files with 11 additions and 16 deletions

View file

@ -1,5 +1,5 @@
/*
REQUIRED_ARGS: -preview=dip25
REQUIRED_ARGS:
TEST_OUTPUT:
---
fail_compilation/fail_scope.d(44): Error: returning `cast(char[])string` escapes a reference to local variable `string`
@ -11,7 +11,7 @@ fail_compilation/fail_scope.d(68): `fail_scope.foo8(return ref int x)`
fail_compilation/fail_scope.d(81): Error: returning `& string` escapes a reference to local variable `string`
fail_compilation/fail_scope.d(91): Error: returning `cast(int[])a` escapes a reference to local variable `a`
fail_compilation/fail_scope.d(99): Error: returning `cast(int[])a` escapes a reference to local variable `a`
fail_compilation/fail_scope.d(107): Error: escaping reference to outer local variable `x`
fail_compilation/fail_scope.d(107): Deprecation: escaping reference to outer local variable `x`
fail_compilation/fail_scope.d(126): Error: returning `s.bar()` escapes a reference to local variable `s`
fail_compilation/fail_scope.d(136): Error: returning `foo16226(i)` escapes a reference to local variable `i`
---

View file

@ -1,11 +1,8 @@
// REQUIRED_ARGS: -preview=dip25
/*
TEST_OUTPUT:
---
fail_compilation/retref2.d(21): Error: function `ref int retref2.D.foo(return ref int)` does not override any function, did you mean to override `ref int retref2.C.foo(ref int)`?
fail_compilation/retref2.d(22): Error: function `ref scope int retref2.D.bar() return` does not override any function, did you mean to override `ref int retref2.C.bar()`?
fail_compilation/retref2.d(18): Error: function `ref int retref2.D.foo(return ref int)` does not override any function, did you mean to override `ref int retref2.C.foo(ref int)`?
fail_compilation/retref2.d(19): Error: function `ref scope int retref2.D.bar() return` does not override any function, did you mean to override `ref int retref2.C.bar()`?
---
*/

View file

@ -1,4 +1,4 @@
/* REQUIRED_ARGS: -preview=dip25
/* REQUIRED_ARGS:
TEST_OUTPUT:
---
fail_compilation/test16228.d(23): Error: function `test16228.S.bar` `static` member has no `this` to which `return` can apply
@ -33,4 +33,3 @@ void bar(int i, void* p)
Identity(p);
Identity(i);
}

View file

@ -1,5 +1,5 @@
/*
REQUIRED_ARGS: -preview=dip1000 -preview=dip25
REQUIRED_ARGS: -preview=dip1000
TEST_OUTPUT:
---
fail_compilation/test17450.d(17): Error: returning `&s.bar` escapes a reference to parameter `s`

View file

@ -1,5 +1,5 @@
// PERMUTE_ARGS: -inline -O
// REQUIRED_ARGS: -preview=dip25 -preview=fieldwise
// REQUIRED_ARGS: -preview=fieldwise
// Test operator overloading
@ -2037,4 +2037,3 @@ int main()
printf("Success\n");
return 0;
}

View file

@ -1,4 +1,4 @@
// REQUIRED_ARGS: -preview=dip25
// REQUIRED_ARGS:
template indexOfReturn(T...)
{

View file

@ -1,6 +1,6 @@
/*
REQUIRED_ARGS: -inline
PERMUTE_ARGS: -release -O -preview=dip25
PERMUTE_ARGS: -release -O
*/
// https://issues.dlang.org/show_bug.cgi?id=17072

View file

@ -1,4 +1,4 @@
// REQUIRED_ARGS: -preview=dip25
// REQUIRED_ARGS:
/*
TEST_OUTPUT:
---