Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Unified Diff: gdb/testsuite/gdb.cp/m-static.cc

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.cp/m-data.exp ('k') | gdb/testsuite/gdb.cp/m-static.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.cp/m-static.cc
diff --git a/gdb/testsuite/gdb.cp/m-static.cc b/gdb/testsuite/gdb.cp/m-static.cc
index 7f997efa9640b24f69726c5632379d29ccb18e62..e9dce18c68ea88375aab18936e3f2f2b2d275dc7 100644
--- a/gdb/testsuite/gdb.cp/m-static.cc
+++ b/gdb/testsuite/gdb.cp/m-static.cc
@@ -2,6 +2,8 @@
enum region { oriental, egyptian, greek, etruscan, roman };
+void keepalive(bool *var) { }
+
// Test one.
class gnu_obj_1
{
@@ -19,6 +21,7 @@ public:
long method ()
{
static bool svar = true;
+ keepalive (&svar);
return key2;
}
};
« no previous file with comments | « gdb/testsuite/gdb.cp/m-data.exp ('k') | gdb/testsuite/gdb.cp/m-static.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698