Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Vassily Litvinov <[email protected]>
  • Loading branch information
vasslitvinov committed Sep 20, 2023
1 parent 0d78284 commit 6dffc55
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/chpldoc/functions/WhereClause.doc.chpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ module M {
writeln("processRange 2");
}

pragma "no where doc"
proc processRangeNW(r: range) where r.low > 1 {
writeln("processRange no where");
}

// From borrowed-in-where.chpl
proc foo(type t) where isSubtype(t, int) {
writeln("In foo where");
Expand Down
2 changes: 2 additions & 0 deletions test/chpldoc/functions/WhereClause.doc.good
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ or

.. function:: proc processRange(r: range) where r.low > 1

.. function:: proc processRangeNW(r: range)

.. function:: proc foo(type t) where isSubtype(t, int)

.. function:: operator +(a: int, b: int) where a > 0
Expand Down

0 comments on commit 6dffc55

Please sign in to comment.