1RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -o %T/swift-ast.dSYM -verbose -no-swiftmodule-timestamp | FileCheck %s --check-prefix=DSYMUTIL 2RUN: llvm-readobj --sections --section-data %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=READOBJ 3RUN: llvm-dwarfdump --show-section-sizes %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=DWARFDUMP 4 5The tested object file has been created by the dummy Swift code: 6let x = 1 7 8Compiled with: 9 swiftc /tmp/test.swift -Onone -target x86_64-apple-macosx10.9 -c 10 ld swift-ast.o -add_ast_path Inputs/swift-ast.swiftmodule -arch x86_64 -lSystem -macosx_version_min 10.9.0 11 12DSYMUTIL: filename:{{.*}}swift-ast.swiftmodule 13DSYMUTIL-NOT: The file was not recognized as a valid object file 14DSYMUTIL: DEBUG MAP OBJECT:{{.*}}swift-ast.swiftmodule 15 16READOBJ: Name:{{.*}}__swift_ast 17READOBJ: |SWIFTMODULE DATA| 18READOBJ-NEXT: |.| 19 20DWARFDUMP: __swift_ast 21 22RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/swift-ast.macho.x86_64 -no-output -verbose 2>&1 | FileCheck %s --check-prefix=TIMESTAMP 23TIMESTAMP: warning: Timestamp mismatch 24 25RUN: dsymutil -s %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast.macho.x86_64 | FileCheck %s --check-prefix=NAST 26NAST-NOT: N_AST 27