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

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

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 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 e9dce18c68ea88375aab18936e3f2f2b2d275dc7..cb871e8d18eef69de8d900fe38ab654b27c8a9c5 100644
--- a/gdb/testsuite/gdb.cp/m-static.cc
+++ b/gdb/testsuite/gdb.cp/m-static.cc
@@ -3,6 +3,7 @@
enum region { oriental, egyptian, greek, etruscan, roman };
void keepalive(bool *var) { }
+void keepalive_int (int *var) { }
// Test one.
class gnu_obj_1
@@ -17,15 +18,27 @@ protected:
public:
gnu_obj_1(antiquities a, long l) {}
+ ~gnu_obj_1() {}
long method ()
{
+ static int sintvar = 4;
static bool svar = true;
+
keepalive (&svar);
+ keepalive_int (&sintvar);
return key2;
}
};
+// An object with a single constructor.
+class single_constructor
+{
+public:
+ single_constructor () { }
+ ~single_constructor () { }
+};
+
const bool gnu_obj_1::test;
const int gnu_obj_1::key1;
long gnu_obj_1::key2 = 77;
@@ -76,6 +89,7 @@ int main()
gnu_obj_2<long> test2(roman);
gnu_obj_3<long> test3(greek);
gnu_obj_4 test4;
+ single_constructor test5;
test4.dummy = test4.elsewhere;
test4.dummy = 0;
« 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