diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-02-10 00:59:27 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-02-10 00:59:27 +0000 |
commit | b2febfff468e814aec6ad487112b51c937fb80e9 (patch) | |
tree | a550d48f8c10bc723b88ec3216092c6a35356d62 /gdb/testsuite | |
parent | 581594903a0e952e9976f6f41f12968dd51189ee (diff) | |
download | gdb-b2febfff468e814aec6ad487112b51c937fb80e9.zip gdb-b2febfff468e814aec6ad487112b51c937fb80e9.tar.gz gdb-b2febfff468e814aec6ad487112b51c937fb80e9.tar.bz2 |
2009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/pr9594.cc | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bf6de51..d51a49a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.cp/pr9594.cc b/gdb/testsuite/gdb.cp/pr9594.cc index bb7e1d6..8fdee84 100644 --- a/gdb/testsuite/gdb.cp/pr9594.cc +++ b/gdb/testsuite/gdb.cp/pr9594.cc @@ -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; } |