-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
171800f
commit 096c86c
Showing
13 changed files
with
4,784 additions
and
4,517 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,6 @@ | ||
.{ | ||
nan, | ||
-nan, | ||
inf, | ||
-inf, | ||
} |
11 changes: 11 additions & 0 deletions
11
test/cases/compile_errors/@import_zon_double_negation_float.zig
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,11 @@ | ||
pub fn main() void { | ||
const f: i32 = @import("zon/double_negation_float.zon"); | ||
_ = f; | ||
} | ||
|
||
// error | ||
// backend=stage2 | ||
// output_mode=Exe | ||
// imports=zon/double_negation_float.zon | ||
// | ||
// double_negation_float.zon:1:2: error: invalid ZON value |
11 changes: 11 additions & 0 deletions
11
test/cases/compile_errors/@import_zon_double_negation_int.zig
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,11 @@ | ||
pub fn main() void { | ||
const f: i32 = @import("zon/double_negation_int.zon"); | ||
_ = f; | ||
} | ||
|
||
// error | ||
// backend=stage2 | ||
// output_mode=Exe | ||
// imports=zon/double_negation_int.zon | ||
// | ||
// double_negation_int.zon:1:2: error: invalid ZON value |
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,11 @@ | ||
pub fn main() void { | ||
const f: i8 = @import("zon/negative_zero.zon"); | ||
_ = f; | ||
} | ||
|
||
// error | ||
// backend=stage2 | ||
// output_mode=Exe | ||
// imports=zon/negative_zero.zon | ||
// | ||
// negative_zero.zon:1:1: error: integer literal '-0' is ambiguous |
11 changes: 11 additions & 0 deletions
11
test/cases/compile_errors/@import_zon_negative_zero_cast_float.zig
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,11 @@ | ||
pub fn main() void { | ||
const f: f32 = @import("zon/negative_zero.zon"); | ||
_ = f; | ||
} | ||
|
||
// error | ||
// backend=stage2 | ||
// output_mode=Exe | ||
// imports=zon/negative_zero.zon | ||
// | ||
// negative_zero.zon:1:1: error: integer literal '-0' is ambiguous |
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 @@ | ||
--1.0 |
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 @@ | ||
--1 |
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 @@ | ||
-0 |