Debian Codegraph @

reports/st/test_fam_it.ll

raw
1 /*
2 * @progname test_fam_it
3 * @version 1
4 * @author Stephen Dum
5 * @category self-test
6 * @output text
7 * @description
8 *
9 * test family iterators: forfam, children and spouses
10 * Iterate over some data, printing results, so we can
11 * compare the output with exected results.
12 */
13
14
15 proc main() {
16 print(nl())
17 forfam(f,c) {
18 print(d(c),": ",key(f),nl())
19 print(" children\n")
20 children(f,i,c2) {
21 print(" ",d(c2),": ",key(i),nl())
22 }
23 print(" spouses\n")
24 spouses(f,s,c2) {
25 print(" ",d(c2),": ",key(s),nl())
26 }
27 }
28 }