1# RUN: yaml2obj %s -o %t1.o 2 3# RUN: wasm-ld --no-entry %t1.o -o - | obj2yaml | FileCheck %s --check-prefix NO-SHARED 4 5# RUN: not wasm-ld --no-entry --shared-memory --max-memory=131072 %t1.o -o - 2>&1 | FileCheck %s --check-prefix SHARED 6 7--- !WASM 8FileHeader: 9 Version: 0x00000001 10Sections: 11 - Type: IMPORT 12 Imports: 13 - Module: env 14 Field: __linear_memory 15 Kind: MEMORY 16 Memory: 17 Initial: 0x00000001 18 - Module: env 19 Field: __indirect_function_table 20 Kind: TABLE 21 Table: 22 Index: 0 23 ElemType: FUNCREF 24 Limits: 25 Initial: 0x00000000 26 - Type: DATA 27 Segments: 28 - SectionOffset: 6 29 InitFlags: 0 30 Offset: 31 Opcode: I32_CONST 32 Value: 0 33 Content: 68656C6C6F0A00 34 - Type: CUSTOM 35 Name: linking 36 Version: 2 37 SymbolTable: 38 - Index: 0 39 Kind: DATA 40 Name: hello_str 41 Flags: [ ] 42 Segment: 0 43 Size: 7 44 SegmentInfo: 45 - Index: 0 46 Name: .rodata.hello_str 47 Alignment: 0 48 Flags: [ ] 49 - Type: CUSTOM 50 Name: target_features 51 Features: 52 - Prefix: DISALLOWED 53 Name: "shared-mem" 54... 55 56# NO-SHARED: - Type: MEMORY 57# NO-SHARED-NEXT: Memories: 58# NO-SHARED-NEXT: - Initial: 0x2 59# NO-SHARED-NOT: Maximum: 60 61# SHARED: --shared-memory is disallowed by {{.*}}shared-memory-no-atomics.yaml.tmp1.o because it was not compiled with 'atomics' or 'bulk-memory' features. 62