aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.python/py-symbol.c')
-rw-r--r--gdb/testsuite/gdb.python/py-symbol.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-symbol.c b/gdb/testsuite/gdb.python/py-symbol.c
index 06a931b..51325dc 100644
--- a/gdb/testsuite/gdb.python/py-symbol.c
+++ b/gdb/testsuite/gdb.python/py-symbol.c
@@ -38,6 +38,10 @@ namespace {
};
#endif
+#ifdef USE_TWO_FILES
+extern void function_in_other_file (void);
+#endif
+
int qq = 72; /* line of qq */
static int rr = 42; /* line of rr */
@@ -70,5 +74,10 @@ int main (int argc, char *argv[])
sclass.seti (42);
sclass.valueofi ();
#endif
+
+#ifdef USE_TWO_FILES
+ function_in_other_file ();
+#endif
+
return 0; /* Break at end. */
}