llvm-project/llvm/test/tools/llvm-ifs/exclude.test

31 lines
942 B
Plaintext

## Test --exclude flag
# RUN: llvm-ifs --input-format=IFS --output-ifs=- --exclude='exclude*' %s | FileCheck %s
# RUN: llvm-ifs --input-format=IFS --output-ifs=- --exclude='exclude*' \
# RUN: --strip-undefined %s | FileCheck %s --check-prefix=BOTH
# RUN: not llvm-ifs --input-format=IFS --output-ifs=- --exclude='[' %s 2>&1 | \
# RUN: FileCheck %s --check-prefix=BAD-GLOB
# BAD-GLOB: error: invalid glob pattern: [
--- !ifs-v1
SoName: somelib.so
IfsVersion: 3.0
Symbols:
- { Name: dont_exclude, Type: Func, Undefined: true }
- { Name: exclude_1, Type: Func }
- { Name: exclude_2, Type: Func, Undefined: true }
- { Name: no_match_not_undef, Type: Func }
...
# CHECK: Symbols:
# CHECK-NEXT: - { Name: dont_exclude, Type: Func, Undefined: true }
# CHECK-NEXT: - { Name: no_match_not_undef, Type: Func }
# CHECK-NEXT: ...
# BOTH: Symbols:
# BOTH-NEXT: - { Name: no_match_not_undef, Type: Func }
# BOTH-NEXT: ...