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/gdb.cp | |
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/gdb.cp')
-rw-r--r-- | gdb/testsuite/gdb.cp/pr9594.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |