1 # RUN: %clang -emit-interface-stubs -o - -emit-merged-ifs %s | \
2 # RUN: FileCheck %s --check-prefixes=CHECK-IFS
4 # RUN: %clang -emit-interface-stubs -o - %s | llvm-readelf --all - | \
5 # RUN: 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-linux-gnu
10 # CHECK-IFS-NEXT: Symbols:
11 # CHECK-IFS-NEXT: - { Name: b, Type: Object, Size: 4 }
14 # CHECK-ELF: ELF Header:
15 # CHECK-ELF: Class: ELF64
16 # CHECK-ELF: Data: 2's complement, little endian
17 # CHECK-ELF: Type: DYN (Shared object file)
18 # CHECK-ELF-NOT: FUNC GLOBAL DEFAULT 1 a
19 # CHECK-ELF: OBJECT GLOBAL DEFAULT 1 b
23 Target: x86_64-linux-gnu
25 - { Name: b, Type: Object, Size: 4 }