mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gdb/testsuite/
* gdb.base/catch-syscall.c: Make unreferenced statics non-static to
ensure clang would not discard them.
* gdb.base/gdbvars.c: Ditto.
* gdb.base/memattr.c: Ditto.
* gdb.base/whatis.c: Ditto.
* gdb.python/py-prettyprint.c: Ditto.
* gdb.trace/actions.c: Ditto.
* gdb.cp/ptype-cv-cp.cc: Mark unused global const int as used to
ensure clang would not discard it.
24 lines
202 B
C
24 lines
202 B
C
/* Simple program to help exercise gdb's convenience variables. */
|
|
|
|
typedef void *ptr;
|
|
|
|
ptr p = &p;
|
|
|
|
void
|
|
foo_void (void)
|
|
{
|
|
}
|
|
|
|
int
|
|
foo_int (void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
p = &p;
|
|
return 0;
|
|
}
|