2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / overload24.C
blob3aee9b3605a4c27a28542129d8336bcd6a2fb9f1
1 // { dg-do assemble  }
2 // PRMS Id: 5124
3 // Bug: g++ promotes bar to int* too soon and the call to f fails.
5 typedef int arr[1];
7 struct A {
8    void f(void);
9    void f(arr &);
11    void g(void);
12    void g(int *);
14    void h(void);
18 void A::h(void)
20    arr bar;
21    f(bar);
22    g(bar);