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

Jez Ng via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 31 20:52:49 PST 2022


Author: Jez Ng
Date: 2022-01-31T23:52:42-05:00
New Revision: 96fb7d059da11d993c7a4548767e500d63c95ecf

URL: https://github.com/llvm/llvm-project/commit/96fb7d059da11d993c7a4548767e500d63c95ecf
DIFF: https://github.com/llvm/llvm-project/commit/96fb7d059da11d993c7a4548767e500d63c95ecf.diff

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

Reviewed By: keith

Differential Revision: https://reviews.llvm.org/D118646

Added: 
    lld/test/MachO/uuid.s

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/uuid.s b/lld/test/MachO/uuid.s
new file mode 100644
index 0000000000000..b4486fe63ecfb
--- /dev/null
+++ b/lld/test/MachO/uuid.s
@@ -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


        


More information about the llvm-commits mailing list