summaryrefslogtreecommitdiff
path: root/tcl/tests/pkg/circ2.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tcl/tests/pkg/circ2.tcl')
-rw-r--r--tcl/tests/pkg/circ2.tcl25
1 files changed, 25 insertions, 0 deletions
diff --git a/tcl/tests/pkg/circ2.tcl b/tcl/tests/pkg/circ2.tcl
new file mode 100644
index 00000000000..d9bc7c50928
--- /dev/null
+++ b/tcl/tests/pkg/circ2.tcl
@@ -0,0 +1,25 @@
+# circ2.tcl --
+#
+# Test package for pkg_mkIndex. This package is required by circ1, and
+# requires circ3. Circ3, in turn, requires circ1 to give us a circularity.
+#
+# Copyright (c) 1998 by Scriptics Corporation.
+# All rights reserved.
+#
+# RCS: @(#) $Id$
+
+package require circ3 1.0
+
+package provide circ2 1.0
+
+namespace eval circ2 {
+ namespace export c2-1 c2-2
+}
+
+proc circ2::c2-1 { num } {
+ return [expr $num * [circ3::c3-1]]
+}
+
+proc circ2::c2-2 { num } {
+ return [expr $num * [circ3::c3-2]]
+}