[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
This commit is contained in:
Heejin Ahn 2020-03-25 21:48:37 -07:00
parent 6946ca4b4c
commit f033f201a7
1 changed files with 3 additions and 0 deletions

View File

@ -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