From f033f201a7c821b4d5f9b0ed16cc550ca681d2a6 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Wed, 25 Mar 2020 21:48:37 -0700 Subject: [PATCH] [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 --- lld/test/wasm/event-section.ll | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lld/test/wasm/event-section.ll b/lld/test/wasm/event-section.ll index 771a8cb..7bd8790 100644 --- a/lld/test/wasm/event-section.ll +++ b/lld/test/wasm/event-section.ll @@ -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 -- 2.7.4