mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Also removed the sdk 'feature' in favour of the more specific objc_interop. Swift SVN r24856
33 lines
1.2 KiB
Swift
33 lines
1.2 KiB
Swift
// RUN: rm -rf %t
|
|
// RUN: mkdir -p %t/comments.framework/Modules/comments.swiftmodule/
|
|
|
|
// RUN: %target-swift-frontend -module-name comments -emit-module -emit-module-path %t/comments.framework/Modules/comments.swiftmodule/%target-swiftmodule-name -emit-module-doc-path %t/comments.framework/Modules/comments.swiftmodule/%target-swiftdoc-name %s
|
|
// RUN: %target-swift-ide-test -print-module-comments -module-to-print=comments -source-filename %s -F %t | FileCheck %s
|
|
|
|
// RUN: cp -r %t/comments.framework/Modules/comments.swiftmodule %t/comments.swiftmodule
|
|
// RUN: %target-swift-ide-test -print-module-comments -module-to-print=comments -source-filename %s -I %t | FileCheck %s
|
|
|
|
// XFAIL: linux
|
|
|
|
/// first_decl_class_1 Aaa.
|
|
class first_decl_class_1 {
|
|
|
|
/// decl_func_1 Aaa.
|
|
func decl_func_1() {}
|
|
|
|
/**
|
|
* decl_func_3 Aaa.
|
|
*/
|
|
func decl_func_2() {}
|
|
|
|
/// decl_func_3 Aaa.
|
|
/** Bbb. */
|
|
func decl_func_3() {}
|
|
}
|
|
|
|
// CHECK: Class/first_decl_class_1 RawComment=[/// first_decl_class_1 Aaa.\n]
|
|
// CHECK: Func/first_decl_class_1.decl_func_1 RawComment=[/// decl_func_1 Aaa.\n]
|
|
// CHECK: Func/first_decl_class_1.decl_func_2 RawComment=[/**\n * decl_func_3 Aaa.\n */]
|
|
// CHECK: Func/first_decl_class_1.decl_func_3 RawComment=[/// decl_func_3 Aaa.\n/** Bbb. */]
|
|
|