-
Notifications
You must be signed in to change notification settings - Fork 753
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
Showing
2 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited. | ||
|
||
;; RUN: wasm-merge %s first %s.second second -S -o - | filecheck %s | ||
|
||
;; Test that sourcemap information is preserved | ||
|
||
(module | ||
;;@ a:1:1 | ||
(func (export "f") | ||
;;@ a:2:1 | ||
(nop) | ||
;;@ a:3:1 | ||
) | ||
) | ||
;; CHECK: (type $0 (func)) | ||
|
||
;; CHECK: (export "f" (func $0)) | ||
|
||
;; CHECK: (export "g" (func $0_1)) | ||
|
||
;; CHECK: ;;@ a:1:1 | ||
;; CHECK-NEXT: (func $0 | ||
;; CHECK-NEXT: ;;@ a:2:1 | ||
;; CHECK-NEXT: (nop) | ||
;; CHECK-NEXT: ;;@ a:3:1 | ||
;; CHECK-NEXT: ) | ||
|
||
;; CHECK: ;;@ b:1:2 | ||
;; CHECK-NEXT: (func $0_1 | ||
;; CHECK-NEXT: ;;@ b:2:2 | ||
;; CHECK-NEXT: (nop) | ||
;; CHECK-NEXT: ;;@ b:3:2 | ||
;; CHECK-NEXT: ) |
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,8 @@ | ||
(module | ||
;;@ b:1:2 | ||
(func (export "g") | ||
;;@ b:2:2 | ||
(nop) | ||
;;@ b:3:2 | ||
) | ||
) |