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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [local6.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
template  struct PCVector2 // { dg-message "note" }
2
{
3
    template  PCVector2(const PCVector2 &cv) ; // { dg-message "note" }
4
 
5
    PCVector2 operator- (const PCVector2 &ov) const
6
        {
7
          return PCVector2(ov.xFIELD, ov.yFIELD); // { dg-error "matching" }
8
          // { dg-message "(candidate|expects 1 argument, 2 provided|cannot convert)" "candidate note" { target *-*-* } 7 }
9
        }
10
 
11
    T xFIELD, yFIELD;
12
};
13
 
14
void findIntersection( PCVector2& p0, PCVector2& p1);
15
 
16
 
17
void findIntersection( PCVector2& p0, PCVector2& p1)
18
{
19
    PCVector2 e = p1 - p0;      // { dg-message "required" }
20
}

powered by: WebSVN 2.1.0

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