From: Sergio Durigan Junior <sergiodj@redhat.com>
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.cp / m-static.cc
index 8472988391cd170117fd311ff1ece16a07943312..eadbdfc44ba824f03ee2da609a3346699fc84b4f 100644 (file)
@@ -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
@@ -21,8 +22,11 @@ public:
 
   long method ()
   {
+    static int sintvar = 4;
     static bool svar = true;
+
     keepalive (&svar);
+    keepalive_int (&sintvar);
     return key2;
   }
 };
This page took 0.023899 seconds and 4 git commands to generate.