2009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>

* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
This commit is contained in:
Paul Pluzhnikov 2009-02-10 00:59:27 +00:00
parent 581594903a
commit b2febfff46
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
2009-02-06 Pedro Alves <pedro@codesourcery.com>
* gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.

View File

@ -47,5 +47,6 @@ int main ()
} a;
Foo foo1;
foo1.set_foo (42); // Set breakpoint here.
a.get(); // Prevent compiler from throwing 'a' away.
return 0;
}