aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/implptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/implptr.c')
-rw-r--r--gdb/testsuite/gdb.dwarf2/implptr.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/implptr.c b/gdb/testsuite/gdb.dwarf2/implptr.c
index 64c7076..9812b7e 100644
--- a/gdb/testsuite/gdb.dwarf2/implptr.c
+++ b/gdb/testsuite/gdb.dwarf2/implptr.c
@@ -52,12 +52,16 @@ foo (int i)
return i + j; /* foo breakpoint */
}
+typedef int *intp;
+typedef intp *intpp;
+typedef intpp *intppp;
+
int __attribute__ ((noinline, used, noclone))
bar (int i)
{
- int *j = &i;
- int **k = &j;
- int ***l = &k;
+ intp j = &i;
+ intpp k = &j;
+ intppp l = &k;
i++; /* bar breakpoint */
return i;
}