blob: 1330cf37fed1d8ebc2b7f39dbd95a55885114654 [file] [log] [blame]
David Blaikief1958da2016-02-26 07:30:15 +00001RUN: not llvm-dwp %p/../Inputs/duplicate/c.dwo %p/../Inputs/duplicate/c.dwo -o %t 2>&1 \
2RUN: | FileCheck --check-prefix=CHECK %s
3
4RUN: not llvm-dwp %p/../Inputs/duplicate/c.dwo %p/../Inputs/duplicate/bc.dwp -o %t 2>&1 \
5RUN: | FileCheck --check-prefix=CHECK --check-prefix=DWP2 %s
6
7RUN: not llvm-dwp %p/../Inputs/duplicate/ac.dwp %p/../Inputs/duplicate/c.dwo -o %t 2>&1 \
8RUN: | FileCheck --check-prefix=CHECK --check-prefix=DWP1 %s
9
10RUN: not llvm-dwp %p/../Inputs/duplicate/ac.dwp %p/../Inputs/duplicate/bc.dwp -o %t 2>&1 \
11RUN: | FileCheck --check-prefix=CHECK --check-prefix=DWP1 --check-prefix=DWP2 %s
12
13Build from a, b, and c.c all containing a single void() func by the name of the file.
14
15CHECK: Duplicate DWO ID ({{.*}}) in 'c.c'
16DWP1-SAME: (from '{{.*}}ac.dwp')
17CHECK-SAME: and 'c.c'
18DWP2-SAME: (from '{{.*}}bc.dwp')