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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [inherit/] [conv2.C] - Blame information for rev 841

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/25895
2
// { dg-do run }
3
 
4
class base {
5
public:
6
  base() {}
7
private:
8
  int val_;
9
};
10
 
11
class derived : public base {
12
public:
13
  derived() {}
14
};
15
 
16
static bool x = true ? (derived*)0 : (base*)0;
17
 
18
int main ()
19
{
20
  if (x)
21
    return 1;
22
}

powered by: WebSVN 2.1.0

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