URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [guality/] [pr46815.C] - Rev 693
Compare with Previous | Blame | View Log
// PR debug/46815
// { dg-do run }
// { dg-options "-g" }
// { dg-skip-if "" { *-*-* } { "*" } { "-O0" } }
struct S
{
int i;
S () { i = 42; }
virtual void foo (void) {}
};
S
bar ()
{
S s;
return s; // { dg-final { gdb-test 17 "s.i" "42" } }
}
int
main ()
{
S s = bar ();
return s.i - 42;
}