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