1 # RUN: llvm-ifs -action write-ifs -o - %s %S/func.ifs %S/object.ifs %S/weak.ifs | \
2 # RUN: FileCheck %s --check-prefixes=CHECK-IFS
4 # RUN: llvm-ifs -action write-bin -o - %s %S/func.ifs %S/object.ifs %S/weak.ifs | \
5 # RUN: llvm-readelf --all | FileCheck %s --check-prefixes=CHECK-ELF
7 # CHECK-IFS: --- !experimental-ifs-v1
8 # CHECK-IFS-NEXT: IfsVersion: 1.0
9 # CHECK-IFS-NEXT: Triple: x86_64-unknown-linux-gnu
10 # CHECK-IFS-NEXT: ObjectFileFormat: ELF
11 # CHECK-IFS-NEXT: Symbols:
12 # CHECK-IFS-DAG: e: { Type: Object, Size: 8 }
13 # CHECK-IFS-DAG: a: { Type: Func }
14 # CHECK-IFS-DAG: f: { Type: Object, Size: 2 }
15 # CHECK-IFS-DAG: _Z10strongFuncv: { Type: Func }
16 # CHECK-IFS-DAG: _Z8weakFuncv: { Type: Func, Weak: true }
17 # CHECK-IFS-DAG: b: { Type: Object, Size: 4 }
20 # CHECK-ELF: FUNC GLOBAL DEFAULT 1 _Z10strongFuncv
21 # CHECK-ELF: FUNC WEAK DEFAULT 1 _Z8weakFuncv
22 # CHECK-ELF: FUNC GLOBAL DEFAULT 1 a
23 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 b
24 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 e
25 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 f
27 --- !experimental-ifs-v1
29 Triple: x86_64-unknown-linux-gnu
32 e: { Type: Object, Size: 8 }
33 f: { Type: Object, Size: 2 }