brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · c55c954 Raw
35 lines · plain
1## Test --exclude flag2 3# RUN: llvm-ifs --input-format=IFS --output-ifs=- --exclude='exclude*' %s | FileCheck %s4 5# Check that exclude excludes from elf files too.6# RUN: llvm-ifs %s --output-elf - --exclude='exclude*' | llvm-ifs - --output-ifs - | FileCheck %s7 8# RUN: llvm-ifs --input-format=IFS --output-ifs=- --exclude='exclude*' \9# RUN: --strip-undefined %s | FileCheck %s --check-prefix=BOTH10 11# RUN: not llvm-ifs --input-format=IFS --output-ifs=- --exclude='[' %s 2>&1 | \12# RUN: FileCheck %s --check-prefix=BAD-GLOB13 14# BAD-GLOB: error: invalid glob pattern, unmatched '['15 16--- !ifs-v117SoName: somelib.so18IfsVersion: 3.019Target: x86_64-unknown-linux-gnu20Symbols:21  - { Name: dont_exclude, Type: Func, Undefined: true }22  - { Name: exclude_1, Type: Func }23  - { Name: exclude_2, Type: Func, Undefined: true }24  - { Name: no_match_not_undef, Type: Func }25...26 27# CHECK:      Symbols:28# CHECK-NEXT:   - { Name: dont_exclude, Type: Func, Undefined: true }29# CHECK-NEXT:   - { Name: no_match_not_undef, Type: Func }30# CHECK-NEXT: ...31 32# BOTH:       Symbols:33# BOTH-NEXT:    - { Name: no_match_not_undef, Type: Func }34# BOTH-NEXT:  ...35