1## Test --exclude flag 2 3# RUN: llvm-ifs --input-format=IFS --output-ifs=- --exclude='exclude*' %s | FileCheck %s 4 5# Check that exclude excludes from elf files too. 6# RUN: llvm-ifs %s --output-elf - --exclude='exclude*' | llvm-ifs - --output-ifs - | FileCheck %s 7 8# RUN: llvm-ifs --input-format=IFS --output-ifs=- --exclude='exclude*' \ 9# RUN: --strip-undefined %s | FileCheck %s --check-prefix=BOTH 10 11# RUN: not llvm-ifs --input-format=IFS --output-ifs=- --exclude='[' %s 2>&1 | \ 12# RUN: FileCheck %s --check-prefix=BAD-GLOB 13 14# BAD-GLOB: error: invalid glob pattern, unmatched '[' 15 16--- !ifs-v1 17SoName: somelib.so 18IfsVersion: 3.0 19Target: x86_64-unknown-linux-gnu 20Symbols: 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