summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/twice.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/twice.c')
-rw-r--r--gdb/testsuite/gdb.base/twice.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/twice.c b/gdb/testsuite/gdb.base/twice.c
new file mode 100644
index 00000000000..c50a2b362d7
--- /dev/null
+++ b/gdb/testsuite/gdb.base/twice.c
@@ -0,0 +1,19 @@
+int nothing ()
+
+{
+ int x = 3 ;
+ return x ;
+}
+
+
+main ()
+
+{
+ int y ;
+#ifdef usestubs
+ set_debug_traps();
+ breakpoint();
+#endif
+ y = nothing () ;
+ printf ("hello\n") ;
+}