OpenCores
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 801

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.