Skip to content

Commit d4ae4c3

Browse files
committed
Make a doc comment test
1 parent 214bc77 commit d4ae4c3

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: %target-build-swift %s -module-name SkipInheritedDocs -emit-module-path %t/SkipInheritedDocs.swiftmodule
3+
// RUN: %target-swift-symbolgraph-extract -module-name SkipInheritedDocs -I %t -pretty-print -skip-inherited-docs -output-dir %t
4+
// RUN: %FileCheck %s --input-file %t/SkipInheritedDocs.symbols.json
5+
6+
/// Parent docs.
7+
public protocol P1 {
8+
/// Parent func docs.
9+
func p2()
10+
}
11+
12+
/// Child docs
13+
public class C1: P1 {
14+
public func p2() {}
15+
}
16+
17+
// CHECK: "Parent func docs."
18+
// CHECK-NOT: "Parent func docs."
19+

test/SymbolGraph/Symbols/SkipsInheritedDocs.swift

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)