summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdb_sample.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_gdb_sample.py')
-rw-r--r--Lib/test/test_gdb_sample.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_gdb_sample.py b/Lib/test/test_gdb_sample.py
new file mode 100644
index 0000000..a732b25
--- /dev/null
+++ b/Lib/test/test_gdb_sample.py
@@ -0,0 +1,12 @@
+# Sample script for use by test_gdb.py
+
+def foo(a, b, c):
+ bar(a, b, c)
+
+def bar(a, b, c):
+ baz(a, b, c)
+
+def baz(*args):
+ print(42)
+
+foo(1, 2, 3)