[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / lld / test / wasm / target-feature-none.yaml
blobfa53ce42f9256bdadbf8b933fc17086e09742c5c
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
9 --- !WASM
10 FileHeader:
11   Version:         0x00000001
12 Sections:
13   - Type:            CUSTOM
14     Name:            linking
15     Version:         2
16   - Type:            CUSTOM
17     Name:            target_features
18     Features:        [ ]
19 ...
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
33 # SPECIFIED-NEXT: ...