summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/overload24.C
blob: 3aee9b3605a4c27a28542129d8336bcd6a2fb9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// { dg-do assemble  }
// PRMS Id: 5124
// Bug: g++ promotes bar to int* too soon and the call to f fails.

typedef int arr[1];

struct A {
   void f(void);
   void f(arr &);

   void g(void);
   void g(int *);

   void h(void);
};


void A::h(void)
{
   arr bar;
   f(bar);
   g(bar);
}