2019-10-08 23:23:14 +08:00
|
|
|
# RUN: %clang -emit-interface-stubs -o - -emit-merged-ifs %s | \
|
|
|
|
# RUN: FileCheck %s --check-prefixes=CHECK-IFS
|
|
|
|
|
|
|
|
# RUN: %clang -emit-interface-stubs -o - %s | llvm-readelf --all | \
|
|
|
|
# RUN: FileCheck %s --check-prefixes=CHECK-ELF
|
|
|
|
|
2020-03-28 16:08:27 +08:00
|
|
|
# CHECK-IFS: --- !experimental-ifs-v2
|
|
|
|
# CHECK-IFS-NEXT: IfsVersion: 2.0
|
2019-10-08 23:23:14 +08:00
|
|
|
# CHECK-IFS-NEXT: Triple: x86_64-linux-gnu
|
|
|
|
# CHECK-IFS-NEXT: ObjectFileFormat: ELF
|
|
|
|
# CHECK-IFS-NEXT: Symbols:
|
2020-03-28 16:08:27 +08:00
|
|
|
# CHECK-IFS-NEXT: - { Name: b, Type: Object, Size: 4 }
|
2019-10-08 23:23:14 +08:00
|
|
|
# CHECK-IFS-NEXT: ...
|
|
|
|
|
|
|
|
# CHECK-ELF: ELF Header:
|
|
|
|
# CHECK-ELF: Class: ELF64
|
|
|
|
# CHECK-ELF: Data: 2's complement, little endian
|
|
|
|
# CHECK-ELF: Type: DYN (Shared object file)
|
|
|
|
# CHECK-ELF-NOT: FUNC GLOBAL DEFAULT 1 a
|
|
|
|
# CHECK-ELF: OBJECT GLOBAL DEFAULT 1 b
|
|
|
|
|
2020-03-28 16:08:27 +08:00
|
|
|
--- !experimental-ifs-v2
|
|
|
|
IfsVersion: 2.0
|
2019-10-08 23:23:14 +08:00
|
|
|
Triple: x86_64-linux-gnu
|
|
|
|
ObjectFileFormat: ELF
|
|
|
|
Symbols:
|
2020-03-28 16:08:27 +08:00
|
|
|
- { Name: b, Type: Object, Size: 4 }
|
2019-10-08 23:23:14 +08:00
|
|
|
...
|