Skip to content

Commit f033f20

Browse files
committed
[WebAssembly] Add test for event section order change
Summary: This adds a test for D76752. Now the global section comes after the event section, and this change makes sure it is satisfied. Reviewers: sbc100, tlively Reviewed By: tlively Subscribers: dschuff, jgravelle-google, sunfish, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76823
1 parent 6946ca4 commit f033f20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lld/test/wasm/event-section.ll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ define void @_start() {
3232
; CHECK-NEXT: - Index: 0
3333
; CHECK-NEXT: Attribute: 0
3434
; CHECK-NEXT: SigIndex: 1
35+
36+
; Global section has to come after event section
37+
; CHECK: - Type: GLOBAL

0 commit comments

Comments
 (0)