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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [abi/] [local1.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
// { dg-additional-sources "local1-a.cc" }
3
 
4
#include 
5
 
6
struct B {
7
  virtual void b() {}
8
};
9
 
10
static B* f() {
11
  struct D : public B {
12
  };
13
 
14
  return new D;
15
}
16
 
17
extern B* g();
18
 
19
int main () {
20
  if (typeid (*f()) == typeid (*g()))
21
    return 1;
22
}

powered by: WebSVN 2.1.0

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