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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [decl1.C] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 24 Dec 2002 
5
 
6
// PR 8702. Failure to match templates.
7
 
8
template  struct C1{};
9
 
10
template 
11
struct C2 {
12
  template operator C1();
13
  template operator C2();
14
};
15
 
16
template template
17
C2::operator C1()
18
{
19
  return C1();
20
}
21
 
22
struct A
23
{
24
  operator int ();                      // { dg-error "operator" "" }
25
  operator float ();                    // { dg-error "operator" "" }
26
  operator float () const;              // { dg-error "operator" "" }
27
  template  operator T * (); // { dg-error "candidates" "" }
28
};
29
 
30
A::operator short () { // { dg-error "prototype for" "" }
31
  return 0;
32
}

powered by: WebSVN 2.1.0

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