2009-02-06 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.cp/pr9594.cc: Prevent GCC from optimizing 'a' out.
This commit is contained in:
parent
581594903a
commit
b2febfff46
2 changed files with 5 additions and 0 deletions
|
@ -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>
|
2009-02-06 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.
|
* gdb.base/siginfo-obj.c, gdb.base/siginfo-obj.exp: New.
|
||||||
|
|
|
@ -47,5 +47,6 @@ int main ()
|
||||||
} a;
|
} a;
|
||||||
Foo foo1;
|
Foo foo1;
|
||||||
foo1.set_foo (42); // Set breakpoint here.
|
foo1.set_foo (42); // Set breakpoint here.
|
||||||
|
a.get(); // Prevent compiler from throwing 'a' away.
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue