aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/frame-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/frame-view.c')
-rw-r--r--gdb/testsuite/gdb.base/frame-view.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/frame-view.c b/gdb/testsuite/gdb.base/frame-view.c
index 7b1cbd6..e330da0 100644
--- a/gdb/testsuite/gdb.base/frame-view.c
+++ b/gdb/testsuite/gdb.base/frame-view.c
@@ -28,6 +28,12 @@ struct type_2
int n;
};
+__attribute__((used)) static int
+called_from_pretty_printer (void)
+{
+ return 23;
+}
+
static int
baz (struct type_1 z1, struct type_2 z2)
{