-
Notifications
You must be signed in to change notification settings - Fork 833
Update lit tests to parse with the new parser #6290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,6 @@ | |
| (module | ||
| ;; CHECK: (type $f (func (param i32))) | ||
| (type $f (func (param i32))) | ||
| (memory 1 2) | ||
| ;; CHECK: (type $1 (func (param i32 i32))) | ||
|
|
||
| ;; CHECK: (type $2 (func)) | ||
|
|
@@ -17,15 +16,16 @@ | |
| (import "env" "import" (func $import)) | ||
| ;; CHECK: (import "env" "import2" (func $import2 (param i32))) | ||
| (import "env" "import2" (func $import2 (param i32))) | ||
| (table funcref (elem $liveness2 $liveness2)) | ||
|
|
||
| ;; CHECK: (global $__asyncify_state (mut i32) (i32.const 0)) | ||
|
|
||
| ;; CHECK: (global $__asyncify_data (mut i32) (i32.const 0)) | ||
|
|
||
| ;; CHECK: (memory $0 1 2) | ||
|
|
||
| ;; CHECK: (table $0 2 2 funcref) | ||
| ;; CHECK: (memory $m 1 2) | ||
| (memory $m 1 2) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why add a name here rather than just move it around?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to improve the output ordering. Adding the name doesn't affect whether the new parser can parse it. |
||
|
|
||
| ;; CHECK: (table $t 2 2 funcref) | ||
| (table $t funcref (elem $liveness2 $liveness2)) | ||
| ;; CHECK: (elem $0 (i32.const 0) $liveness2 $liveness2) | ||
|
|
||
| ;; CHECK: (export "asyncify_start_unwind" (func $asyncify_start_unwind)) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be flipped? That is, the seen type should be a subtype of the expected type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, in this case if I catch e.g. eqref, it would be valid and safe to overapproximate and have a
pop anyref, but it would not be safe or valid to havepop i31ref, since the eqref I'm catching may not be an i31ref.