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] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR debug/46815
2
// { dg-do run }
3
// { dg-options "-g" }
4
// { dg-skip-if "" { *-*-* }  { "*" } { "-O0" } }
5
 
6
struct S
7
{
8
  int i;
9
  S () { i = 42; }
10
  virtual void foo (void) {}
11
};
12
 
13
S
14
bar ()
15
{
16
  S s;
17
  return s;     // { dg-final { gdb-test 17 "s.i" "42" } }
18
}
19
 
20
int
21
main ()
22
{
23
  S s = bar ();
24
  return s.i - 42;
25
}

powered by: WebSVN 2.1.0

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