URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
699 |
jeremybenn |
// { dg-do assemble }
|
2 |
|
|
//
|
3 |
|
|
// Copyright (C) 2000 Free Software Foundation, Inc.
|
4 |
|
|
// Contributed by Nathan Sidwell 18 Jan 2001
|
5 |
|
|
|
6 |
|
|
// Bug 1617. We didn't resolve partial ordering properly. The std is rather
|
7 |
|
|
// vague about it anyway, DR 214 talks about this.
|
8 |
|
|
|
9 |
|
|
extern "C" int puts (char const *);
|
10 |
|
|
|
11 |
|
|
template int Foo (T); // { dg-message "note" }
|
12 |
|
|
template int Foo (T &); // { dg-message "note" } candidate
|
13 |
|
|
|
14 |
|
|
template int Qux (T); // { dg-message "note" }
|
15 |
|
|
template int Qux (T const &); // { dg-message "note" } candidate
|
16 |
|
|
|
17 |
|
|
template int Bar (T const *const &); // { dg-message "note" }
|
18 |
|
|
template int Bar (T *const &); // { dg-message "note" } candidate
|
19 |
|
|
template int Bar (T *); // { dg-message "note" } candidate
|
20 |
|
|
|
21 |
|
|
template int Baz (T *const &); // { dg-message "note" }
|
22 |
|
|
template int Baz (T *); // { dg-message "note" } candidate
|
23 |
|
|
|
24 |
|
|
int Baz (int const *ptr, int *ptr2)
|
25 |
|
|
{
|
26 |
|
|
Baz (ptr2); // { dg-error "ambiguous" }
|
27 |
|
|
// { dg-message "candidate" "candidate note" { target *-*-* } 26 }
|
28 |
|
|
Bar (ptr2); // { dg-error "ambiguous" }
|
29 |
|
|
// { dg-message "candidate" "candidate note" { target *-*-* } 28 }
|
30 |
|
|
Foo (ptr2); // { dg-error "ambiguous" }
|
31 |
|
|
// { dg-message "candidate" "candidate note" { target *-*-* } 30 }
|
32 |
|
|
Qux (ptr2); // { dg-error "ambiguous" }
|
33 |
|
|
// { dg-message "candidate" "candidate note" { target *-*-* } 32 }
|
34 |
|
|
return 0;
|
35 |
|
|
}
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.