summaryrefslogtreecommitdiff
path: root/Lib/test/gdb_sample.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/gdb_sample.py')
-rw-r--r--Lib/test/gdb_sample.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/gdb_sample.py b/Lib/test/gdb_sample.py
new file mode 100644
index 0000000000..a732b25b4d
--- /dev/null
+++ b/Lib/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)