OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-base4.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 c++/46626
2
// { dg-do run }
3
// { dg-options "-std=c++0x" }
4
 
5
struct A
6
{
7
  virtual void f () = 0;
8
  virtual ~A () { }
9
};
10
 
11
struct B : A
12
{
13
  virtual void f () { }
14
};
15
 
16
static void
17
foo (A *a)
18
{
19
  a->f ();
20
}
21
 
22
int
23
main ()
24
{
25
  B b;
26
  foo (&b);
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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