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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [builtin1.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
// Test that we don't discard builtin candidates inappropriately.
2
 
3
struct B { };
4
 
5
struct A {
6
  operator int ();
7
  operator B ();
8
};
9
 
10
void operator+ (B, B);          // { dg-message "operator" "operator" }
11
 
12
int main ()
13
{
14
  A a;
15
  a + a;                        // { dg-error "ambiguous" "ambiguous" }
16
  // { dg-message "operator" "match candidate text" { target *-*-* } 15 }
17
  // { dg-message "candidates" "candidates" { target *-*-* } 15 }
18
}

powered by: WebSVN 2.1.0

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