summaryrefslogtreecommitdiffstats
path: root/clang/test/InterfaceStubs/conflict-type.ifs
blob: aaa04775e31763727ae4b1eaea870926ab106d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: not %clang -emit-merged-ifs -emit-interface-stubs -o - %s %S/func.ifs 2>&1 | \
# RUN: FileCheck %s --check-prefixes=CHECK-IFS

# Here we are testing to see if two symbols with identical names will fail to
# merge in conflict due to mismatched types.
# CHECK-IFS: error: Interface Stub: Type Mismatch for a.
# CHECK-IFS-NEXT: Filename:
# CHECK-IFS-NEXT: Type Values: Object Func

--- !experimental-ifs-v1
IfsVersion: 1.0
Triple: x86_64-linux-gnu
ObjectFileFormat: ELF
Symbols:
  a: { Type: Object, Size: 1 }
...
OpenPOWER on IntegriCloud