forked from ethereum/solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract yul syntax tests: if statement
- Loading branch information
1 parent
bc97c3e
commit 2accbbe
Showing
7 changed files
with
41 additions
and
14 deletions.
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,6 @@ | ||
{ | ||
if true:bool {} | ||
} | ||
// ==== | ||
// dialect: evmTyped | ||
// ---- |
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,9 @@ | ||
{ | ||
if false:bool | ||
{ | ||
let x:u256 := 3:u256 | ||
} | ||
} | ||
// ==== | ||
// dialect: evmTyped | ||
// ---- |
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 @@ | ||
{ | ||
function f() -> x:bool {} | ||
|
||
if f() | ||
{ | ||
let b:bool := f() | ||
} | ||
} | ||
// ==== | ||
// dialect: evmTyped | ||
// ---- |
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,5 @@ | ||
{ if let x:u256 {} } | ||
// ==== | ||
// dialect: evmTyped | ||
// ---- | ||
// ParserError 1856: (5-8): Literal or identifier expected. |
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,5 @@ | ||
{ if true:bool let x:u256 := 3:u256 } | ||
// ==== | ||
// dialect: evmTyped | ||
// ---- | ||
// ParserError 2314: (15-18): Expected '{' but got reserved keyword 'let' |
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,5 @@ | ||
{ if 42:u256 { } } | ||
// ==== | ||
// dialect: evmTyped | ||
// ---- | ||
// TypeError 1733: (5-12): Expected a value of boolean type "bool" but got "u256" |