Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/overload24.C

raw
1 // { 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 }