1 # RUN: llvm-ifs --input-format=IFS --output-ifs - %s %S/func.ifs %S/object.ifs %S/weak.ifs | \
2 # RUN: FileCheck %s --check-prefixes=CHECK-IFS
4 # RUN: llvm-ifs --input-format=IFS --output-elf - %s %S/func.ifs %S/object.ifs %S/weak.ifs | \
5 # RUN: llvm-readelf --all - | FileCheck %s --check-prefixes=CHECK-ELF
7 # CHECK-IFS: --- !ifs-v1
8 # CHECK-IFS-NEXT: IfsVersion: 3.0
9 # CHECK-IFS-NEXT: Target: x86_64-unknown-linux-gnu
10 # CHECK-IFS-NEXT: Symbols:
11 # CHECK-IFS-DAG: - { Name: e, Type: Object, Size: 8 }
12 # CHECK-IFS-DAG: - { Name: a, Type: Func }
13 # CHECK-IFS-DAG: - { Name: f, Type: Object, Size: 2 }
14 # CHECK-IFS-DAG: - { Name: _Z10strongFuncv, Type: Func }
15 # CHECK-IFS-DAG: - { Name: _Z8weakFuncv, Type: Func, Weak: true }
16 # CHECK-IFS-DAG: - { Name: b, Type: Object, Size: 4 }
19 # CHECK-ELF: FUNC GLOBAL DEFAULT 1 _Z10strongFuncv
20 # CHECK-ELF: FUNC WEAK DEFAULT 1 _Z8weakFuncv
21 # CHECK-ELF: FUNC GLOBAL DEFAULT 1 a
22 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 b
23 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 e
24 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 f
28 Target: x86_64-unknown-linux-gnu
30 - { Name: e, Type: Object, Size: 8 }
31 - { Name: f, Type: Object, Size: 2 }