brintos

brintos / llvm-project-archived public Read only

0
0
Text · 832 B · e469835 Raw
18 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t-dup.o4# RUN: not %lld -dylib -o /dev/null %t-dup.o %t.o 2>&1 | FileCheck %s -DNAME=__ZN1a1bL3fooE -DFILE_1=%t-dup.o -DFILE_2=%t.o5# RUN: not %lld -dylib -o /dev/null %t.o %t.o 2>&1 | FileCheck %s -DNAME=__ZN1a1bL3fooE -DFILE_1=%t.o -DFILE_2=%t.o6 7# RUN: not %lld -dylib -demangle -o /dev/null %t-dup.o %t.o 2>&1 | FileCheck %s -DNAME="a::b::foo" -DFILE_1=%t-dup.o -DFILE_2=%t.o8# RUN: not %lld -dylib -demangle -o /dev/null %t.o %t.o 2>&1 | FileCheck %s -DNAME="a::b::foo" -DFILE_1=%t.o -DFILE_2=%t.o9 10# CHECK:      error: duplicate symbol: [[NAME]]11# CHECK-NEXT: >>> defined in [[FILE_1]]12# CHECK-NEXT: >>> defined in [[FILE_2]]13 14.text15.global __ZN1a1bL3fooE16__ZN1a1bL3fooE:17  ret18