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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [template4.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
// PR c++/35986
2
// { dg-do compile }
3
 
4
namespace
5
{
6
  template  void foo (...);     // { dg-message "foo" }
7
  template  void bar (int, ...);        // { dg-message "bar" }
8
  void baz (...);                       // { dg-message "baz" }
9
}
10
 
11
template  void foo (...);               // { dg-message "note" }
12
template  void bar (int, ...);  // { dg-message "note" }
13
void baz (...);                         // { dg-message "note" }
14
 
15
void
16
test ()
17
{
18
  foo <0> (0);             // { dg-error "is ambiguous" }
19
  // { dg-message "candidate" "candidate note" { target *-*-* } 18 }
20
  bar <1> (0, 1);  // { dg-error "is ambiguous" }
21
  // { dg-message "candidate" "candidate note" { target *-*-* } 20 }
22
  baz (0);              // { dg-error "is ambiguous" }
23
  // { dg-message "candidate" "candidate note" { target *-*-* } 22 }
24
}

powered by: WebSVN 2.1.0

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