URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [guality/] [pr46815.C] - Rev 693
Go to most recent revision | 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;
}
Go to most recent revision | Compare with Previous | Blame | View Log