[lld-macho][test] Add test for UUID format
authorJez Ng <jezng@fb.com>
Tue, 1 Feb 2022 04:45:19 +0000 (23:45 -0500)
committerJez Ng <jezng@fb.com>
Tue, 1 Feb 2022 04:52:42 +0000 (23:52 -0500)
Reviewed By: keith

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

lld/test/MachO/uuid.s [new file with mode: 0644]

diff --git a/lld/test/MachO/uuid.s b/lld/test/MachO/uuid.s
new file mode 100644 (file)
index 0000000..b4486fe
--- /dev/null
@@ -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