2 // GROUPS passed arg-matching
4 // Subject: argument matching depending on the def order
5 // From: kondo@akane.mech.ibaraki.ac.jp
6 // Date: Fri, 04 Sep 92 17:41:05 JST
9 // check the order of declarations
12 void f(double* p) { std::cout << "A(double*)\n"; } // { dg-message "note" }
13 void f(int* p) { std::cout << "A(int*)\n"; } // { dg-message "note" }
18 void f(int* p) { std::cout << "B(int*)\n"; } // { dg-message "note" }
19 void f(double* p) { std::cout << "B(double*)\n"; } // { dg-message "note" }
27 a.f(0);// { dg-error "ambiguous" }
28 b.f(0);// { dg-error "ambiguous" }