Index: gdb/testsuite/gdb.cp/using-crash.cc |
diff --git a/gdb/testsuite/gdb.arch/i386-dr3-watch.c b/gdb/testsuite/gdb.cp/using-crash.cc |
similarity index 74% |
copy from gdb/testsuite/gdb.arch/i386-dr3-watch.c |
copy to gdb/testsuite/gdb.cp/using-crash.cc |
index 02ccfbb1252021b8a56f17e362d73b4208080b40..f53af19f1014bd2e545ff5c826bbfebb2ae6e4c1 100644 |
--- a/gdb/testsuite/gdb.arch/i386-dr3-watch.c |
+++ b/gdb/testsuite/gdb.cp/using-crash.cc |
@@ -1,7 +1,4 @@ |
-/* Copyright 2011-2012 Free Software Foundation, Inc. |
- |
- This file is part of GDB. |
- |
+/* Copyright 2012-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 |
the Free Software Foundation; either version 3 of the License, or |
@@ -15,29 +12,31 @@ |
You should have received a copy of the GNU General Public License |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
-int i1; |
-char gap1[32]; |
+#include <iostream> |
+using namespace std; |
-int i2; |
-char gap2[32]; |
+class c1; |
-int i3; |
-char gap3[32]; |
+void foo (); |
-int i4; |
+int |
+main () |
+{ |
+ foo (); |
+ return 0; |
+} |
void |
-trigger (void) |
+foo () |
{ |
- i1 = 1; |
- i2 = 2; |
- i3 = 3; |
- i4 = 4; |
+ c1 *p = 0; |
} |
-int |
-main () |
+class b1 { public: int x; }; |
+ |
+class c1 : public b1 |
{ |
- trigger (); |
- return 0; |
-} |
+ public: |
+ using b1::x; |
+ c1 () {} |
+}; |