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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [overload24.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 5124
3
// Bug: g++ promotes bar to int* too soon and the call to f fails.
4
 
5
typedef int arr[1];
6
 
7
struct A {
8
   void f(void);
9
   void f(arr &);
10
 
11
   void g(void);
12
   void g(int *);
13
 
14
   void h(void);
15
};
16
 
17
 
18
void A::h(void)
19
{
20
   arr bar;
21
   f(bar);
22
   g(bar);
23
}

powered by: WebSVN 2.1.0

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