OSDN Git Service

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