16 lines · plain
1; REQUIRES: x862; RUN: rm -rf %t; mkdir -p %t3; RUN: opt -module-summary %s -o %t/first.o4; RUN: opt -module-summary %s -o %t/second.o5; RUN: not %lld -dylib -lSystem %t/first.o %t/second.o -o /dev/null 2>&1 | FileCheck %s6; CHECK: error: duplicate symbol: _foo7; CHECK-NEXT: >>> defined in {{.*}}/first.o8; CHECK-NEXT: >>> defined in {{.*}}/second.o9 10target triple = "x86_64-apple-macosx10.15.0"11target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"12 13define void @foo() {14 ret void15}16