aboutsummaryrefslogtreecommitdiff
path: root/test/wasm/data-layout.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm/data-layout.ll')
-rw-r--r--test/wasm/data-layout.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/wasm/data-layout.ll b/test/wasm/data-layout.ll
index 5fd3f2d7791c..b01c13ac9b82 100644
--- a/test/wasm/data-layout.ll
+++ b/test/wasm/data-layout.ll
@@ -68,6 +68,16 @@ target triple = "wasm32-unknown-unknown"
; CHECK-MAX-NEXT: Initial: 0x00000002
; CHECK-MAX-NEXT: Maximum: 0x00000002
+; RUN: wasm-ld -no-gc-sections --allow-undefined --no-entry --shared-memory \
+; RUN: --initial-memory=131072 --max-memory=131072 -o %t_max.wasm %t.o \
+; RUN: %t.hello.o
+; RUN: obj2yaml %t_max.wasm | FileCheck %s -check-prefix=CHECK-SHARED
+
+; CHECK-SHARED: - Type: MEMORY
+; CHECK-SHARED-NEXT: Memories:
+; CHECK-SHARED-NEXT: - Flags: [ HAS_MAX, IS_SHARED ]
+; CHECK-SHARED-NEXT: Initial: 0x00000002
+; CHECK-SHARED-NEXT: Maximum: 0x00000002
; RUN: wasm-ld --relocatable -o %t_reloc.wasm %t.o %t.hello.o
; RUN: obj2yaml %t_reloc.wasm | FileCheck %s -check-prefix=RELOC