Skip to content

Commit

Permalink
[WebAssembly] Add test for event section order change
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aheejin committed Mar 26, 2020
1 parent 6946ca4 commit f033f20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lld/test/wasm/event-section.ll
Expand Up @@ -32,3 +32,6 @@ define void @_start() {
; CHECK-NEXT: - Index: 0
; CHECK-NEXT: Attribute: 0
; CHECK-NEXT: SigIndex: 1

; Global section has to come after event section
; CHECK: - Type: GLOBAL

0 comments on commit f033f20

Please sign in to comment.