1# RUN: yaml2obj %s -o %t1.o 2 3# RUN: wasm-ld --no-entry -o - %t1.o | obj2yaml | FileCheck %s --check-prefix EMPTY 4 5# RUN: wasm-ld --no-entry --features= -o - %t1.o | obj2yaml | FileCheck %s --check-prefix EMPTY 6 7# RUN: wasm-ld --no-entry --features=foo,bar,baz -o - %t1.o | obj2yaml | FileCheck %s --check-prefix SPECIFIED 8 9--- !WASM 10FileHeader: 11 Version: 0x00000001 12Sections: 13 - Type: CUSTOM 14 Name: linking 15 Version: 2 16 - Type: CUSTOM 17 Name: target_features 18 Features: [ ] 19... 20 21# section is not emitted if it would be empty 22# EMPTY-NOT: target_features 23 24# SPECIFIED: - Type: CUSTOM 25# SPECIFIED: Name: target_features 26# SPECIFIED-NEXT: Features: 27# SPECIFIED-NEXT: - Prefix: USED 28# SPECIFIED-NEXT: Name: bar 29# SPECIFIED-NEXT: - Prefix: USED 30# SPECIFIED-NEXT: Name: baz 31# SPECIFIED-NEXT: - Prefix: USED 32# SPECIFIED-NEXT: Name: foo 33# SPECIFIED-NEXT: ... 34