[lld-macho][test] Add test for UUID format

Reviewed By: keith

Differential Revision: https://reviews.llvm.org/D118646
This commit is contained in:
Jez Ng 2022-01-31 23:45:19 -05:00
parent 28c5e1b760
commit 96fb7d059d
1 changed files with 9 additions and 0 deletions

9
lld/test/MachO/uuid.s Normal file
View File

@ -0,0 +1,9 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %s -o %t.o
# RUN: %lld -lSystem %t.o -o %t
# RUN: llvm-dwarfdump --uuid %t | FileCheck %s
# CHECK: 4C4C44{{([[:xdigit:]]{2})}}-5555-{{([[:xdigit:]]{4})}}-A1{{([[:xdigit:]]{2})}}-{{([[:xdigit:]]{12})}} (x86_64)
.globl _main
_main:
ret