From b2febfff468e814aec6ad487112b51c937fb80e9 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Tue, 10 Feb 2009 00:59:27 +0000 Subject: [PATCH] 2009-02-06 Paul Pluzhnikov * gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.cp/pr9594.cc | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index bf6de5101a5..d51a49a98b8 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-02-06 Paul Pluzhnikov + + * gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out. + 2009-02-06 Pedro Alves * 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 bb7e1d6e227..8fdee84ae1f 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; } -- 2.30.2