1 # RUN: llvm-ifs -action write-ifs -o - %s | \
2 # RUN: FileCheck %s --check-prefixes=CHECK-IFS
4 # RUN: llvm-ifs -action write-bin -o - %s | \
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-NEXT: b: { Type: Object, Size: 4 }
15 # CHECK-ELF: ELF Header:
16 # CHECK-ELF: Class: ELF64
17 # CHECK-ELF: Data: 2's complement, little endian
18 # CHECK-ELF: Type: DYN (Shared object file)
19 # CHECK-ELF-NOT: FUNC GLOBAL DEFAULT 1 a
20 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 b
22 --- !experimental-ifs-v1
24 Triple: x86_64-unknown-linux-gnu
27 b: { Type: Object, Size: 4 }