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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [local6.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
template  struct PCVector2
2
{ // { dg-error "" }
3
    template  PCVector2(const PCVector2 &cv) ;
4
 
5
    PCVector2 operator- (const PCVector2 &ov) const
6
        {
7
          return PCVector2(ov.xFIELD, ov.yFIELD); // { dg-error "" }
8
        }
9
 
10
    T xFIELD, yFIELD;
11
};
12
 
13
void findIntersection( PCVector2& p0, PCVector2& p1);
14
 
15
 
16
void findIntersection( PCVector2& p0, PCVector2& p1)
17
{
18
    PCVector2 e = p1 - p0;      // { dg-error "" }
19
}

powered by: WebSVN 2.1.0

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