brintos

brintos / llvm-project-archived public Read only

0
0
Text · 982 B · 68a9e5d Raw
28 lines · plain
1# REQUIRES: x862# UNSUPPORTED: system-windows3# RUN: rm -rf %t && mkdir -p %t4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t/test.o5# RUN: %lld -lSystem %t/test.o -o %t/a6# RUN: %lld -lSystem %t/test.o -o %t/b7# RUN: llvm-dwarfdump --uuid %t/a | awk '{print $2}' > %t/uuida8# RUN: llvm-dwarfdump --uuid %t/b | awk '{print $2}' > %t/uuidb9# RUN: FileCheck %s < %t/uuida10# RUN: FileCheck %s < %t/uuidb11# RUN: not cmp %t/uuida %t/uuidb12 13## Ensure -final_output is used for universal binaries, which may be linked with14## temporary output file names15# RUN: %lld -lSystem %t/test.o -o %t/c -final_output %t/a16# RUN: llvm-dwarfdump --uuid %t/c | awk '{print $2}' > %t/uuidc17# RUN: cmp %t/uuida %t/uuidc18 19## Test disabling UUID generation20# RUN: %lld -lSystem %t/test.o -o %t/d -no_uuid21# RUN: llvm-dwarfdump --uuid %t/d | count 022 23# CHECK: 4C4C44{{([[:xdigit:]]{2})}}-5555-{{([[:xdigit:]]{4})}}-A1{{([[:xdigit:]]{2})}}-{{([[:xdigit:]]{12})}}24 25.globl _main26_main:27  ret28