/* This testcase is part of GDB, the GNU debugger.
- Copyright 2008, 2009, 2010 Free Software Foundation, Inc.
+ Copyright 2008-2013 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
enum e evalue = TWO;
#ifdef __cplusplus
+
+struct Base {
+ virtual int x() { return 5; }
+};
+
+struct Derived : public Base {
+};
+
+Base *base = new Derived ();
+
void ptr_ref(int*& rptr_int)
{
return; /* break to inspect pointer by reference. */
return arg1 + arg2;
}
+char **save_argv;
+
int
main (int argc, char *argv[])
{
ptr_ref(ptr_i);
#endif
- return 0; /* break to inspect struct and union */
+ save_argv = argv; /* break to inspect struct and union */
+ return 0;
}