aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/list-dot-nodebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/list-dot-nodebug.c')
-rw-r--r--gdb/testsuite/gdb.base/list-dot-nodebug.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/list-dot-nodebug.c b/gdb/testsuite/gdb.base/list-dot-nodebug.c
index b37c356..5be8099 100644
--- a/gdb/testsuite/gdb.base/list-dot-nodebug.c
+++ b/gdb/testsuite/gdb.base/list-dot-nodebug.c
@@ -1,6 +1,6 @@
/* This testcase is part of GDB, the GNU debugger.
- Copyright 2024 Free Software Foundation, Inc.
+ Copyright 2024-2025 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -31,3 +31,12 @@ main ()
foo (&x);
return 0;
}
+
+void
+_start ()
+{
+ (void) main ();
+
+ while (1)
+ ;
+}