diff options
Diffstat (limited to 'llvm/test/tools/dsymutil/swift-ast.test')
-rw-r--r-- | llvm/test/tools/dsymutil/swift-ast.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/tools/dsymutil/swift-ast.test b/llvm/test/tools/dsymutil/swift-ast.test new file mode 100644 index 00000000000..c9dc6d3cb40 --- /dev/null +++ b/llvm/test/tools/dsymutil/swift-ast.test @@ -0,0 +1,14 @@ +RUN: llvm-dsymutil -oso-prepend-path %p %p/Inputs/swift-ast -o %T/swift-ast.dSYM -verbose | FileCheck %s --check-prefix=DSYMUTIL +RUN: llvm-readobj -sections -section-data %T/swift-ast.dSYM/Contents/Resources/DWARF/swift-ast | FileCheck %s --check-prefix=READOBJ + +The tested object file has been created by the dummy Swift code: +let x = 1 + +Compiled with: swiftc /tmp/test.swift -Onone -target x86_64-apple-macosx10.9 -c +Linked with: ld swift-ast.o -add_ast_path Inputs/swift-ast.swiftmodule -arch x86_64 -lSystem -macosx_version_min 10.9.0 + +DSYMUTIL: filename:{{.*}}swift-ast.swiftmodule +DSYMUTIL: DEBUG MAP OBJECT:{{.*}}swift-ast.swiftmodule + +READOBJ: Name:{{.*}}__swift_ast +READOBJ: |SWIFTMODULE DATA| |