2 ; RUN: rm -rf %t; mkdir -p %t
3 ; RUN: opt -module-summary %s -o %t/first.o
4 ; RUN: opt -module-summary %s -o %t/second.o
5 ; RUN: not %lld -dylib -lSystem %t/first.o %t/second.o -o /dev/null 2>&1 | FileCheck %s
6 ; CHECK: error: duplicate symbol: _foo
7 ; CHECK-NEXT: >>> defined in {{.*}}/first.o
8 ; CHECK-NEXT: >>> defined in {{.*}}/second.o
10 target triple = "x86_64-apple-macosx10.15.0"
11 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"