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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [overload4.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// GROUPS passed overloading
3
  typedef void *                (*NewObject) (void);
4
 
5
  class B
6
  {
7
  public:
8
        static void WantsNew (NewObject creator); // { dg-message "B::WantsNew|no known conversion" }
9
  };
10
 
11
  class A
12
  {
13
  public:
14
      static A * NewOne (void);
15
 
16
      static void InitClass (void)
17
      {
18
          B::WantsNew ( (NewObject) A::NewOne );
19
          // This used to die in convert_harshness_{ansi,old} cuz it
20
          // didn't know what to do about a void type.
21
          B::WantsNew ( A::NewOne );// { dg-error "no matching" }
22
          // { dg-message "candidate" "candidate note" { target *-*-* } 21 }
23
      }
24
  };

powered by: WebSVN 2.1.0

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