update-one-CU.test 980 Bytes
RUN: dsymutil -oso-prepend-path=%p/.. %p/../Inputs/objc.macho.x86_64 -o %t.dSYM
RUN: dsymutil -update %t.dSYM
RUN: llvm-dwarfdump -apple-types -apple-objc %t.dSYM | FileCheck %s

CHECK: .apple_types contents:
CHECK: Hash 0x2b5e6 [
CHECK-NEXT:    Name@0x145 {
CHECK-NEXT:      String: 0x00000066 "A"
CHECK-NEXT:      Data 0 [
CHECK-NEXT:        Atom[0]: 0x0000012d
CHECK-NEXT:        Atom[1]: 0x0013
CHECK-NEXT:        Atom[2]: 0x02
CHECK-NEXT:        Atom[3]: 0x0b87b15a
CHECK-NEXT:      ]
CHECK-NEXT:    }
CHECK-NEXT:  ]

CHECK: .apple_objc contents:
CHECK: Hash 0x2b5e6
CHECK-NEXT: Name@0x38 {
CHECK-NEXT:   String: 0x00000066 "A"
CHECK-NEXT:   Data 0 [
CHECK-NEXT:     Atom[0]: 0x00000027
CHECK-NEXT:   ]
CHECK-NEXT:   Data 1 [
CHECK-NEXT:     Atom[0]: 0x0000007a
CHECK-NEXT:   ]
CHECK-NEXT: }
CHECK: Hash 0x3fa0f4b5
CHECK-NEXT: Name@0x4c {
CHECK-NEXT:   String: 0x0000009d "A(Category)"
CHECK-NEXT:   Data 0 [
CHECK-NEXT:     Atom[0]: 0x0000007a
CHECK-NEXT:   ]
CHECK-NEXT: }