aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/smoke.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.base/smoke.c')
-rw-r--r--gdb/testsuite/gdb.base/smoke.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/gdb/testsuite/gdb.base/smoke.c b/gdb/testsuite/gdb.base/smoke.c
deleted file mode 100644
index 69d34c9..0000000
--- a/gdb/testsuite/gdb.base/smoke.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Test various kinds of stepping.
-*/
-int glob = 0;
-
-int callee() {
- glob++;
- return (0);
-}
-
-int main () {
- int w,x,y,z;
- int a[10], b[10];
-
- /* Test "next" and "step" */
- w = 0;
- x = 1;
- y = 2;
- z = 3;
- w = w + 2;
- x = x + 3;
- y = y + 4;
- z = z + 5;
-
- /* Test that "next" goes over a call */
- callee(); /* OVER */
-
- /* Test that "step" doesn't */
- callee(); /* INTO */
-
- /* Test "stepi" */
- a[5] = a[3] - a[4];
- callee(); /* STEPI */
-
- /* Test "nexti" */
- callee(); /* NEXTI */
-
- y = w + z;
-
- return (0);
-}