Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4057 from 9rnsr/fix10439
Issue 10439 - Deprecate float.min, double.min, real.min
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
TEST_OUTPUT: | ||
--- | ||
fail_compilation/fail10439.d(18): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(19): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(20): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(22): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(23): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(24): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(26): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(27): Error: .min property is deprecated, use .min_normal instead | ||
fail_compilation/fail10439.d(28): Error: .min property is deprecated, use .min_normal instead | ||
--- | ||
*/ | ||
|
||
void main() | ||
{ | ||
auto a = float.min; | ||
auto b = double.min; | ||
auto c = real.min; | ||
|
||
auto d = ifloat.min; | ||
auto e = idouble.min; | ||
auto f = ireal.min; | ||
|
||
auto g = cfloat.min; | ||
auto h = cdouble.min; | ||
auto i = creal.min; | ||
} |