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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2004 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 1 Apr 2004 
3
 
4
void Baz ();
5
 
6
template  void Foo1 (T *); // #1
7
template  void Foo1 (T const *a) {a (1);} // #2
8
 
9
template  T const *Foo2 (T *);
10
 
11
template  void Foo3 (T *, T const * = 0); // { dg-message "note" }
12
 
13
void Bar ()
14
{
15
  Foo1 (&Baz); // #1
16
 
17
  Foo2 (&Baz);
18
 
19
  Foo3 (&Baz);
20
 
21
  Foo3 (&Baz, &Baz); // { dg-error "no matching function" "" }
22
  // { dg-message "(candidate|incompatible cv-qualifiers)" "candidate note" { target *-*-* } 21 }
23
}

powered by: WebSVN 2.1.0

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