1 # RUN: yaml2obj %s -o %t1.o
3 # RUN: wasm-ld --no-entry -o - %t1.o | obj2yaml | FileCheck %s --check-prefix EMPTY
5 # RUN: wasm-ld --no-entry --features= -o - %t1.o | obj2yaml | FileCheck %s --check-prefix EMPTY
7 # RUN: wasm-ld --no-entry --features=foo,bar,baz -o - %t1.o | obj2yaml | FileCheck %s --check-prefix SPECIFIED
21 # section is not emitted if it would be empty
22 # EMPTY-NOT: target_features
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