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; |
} |
}; |