2 // GROUPS passed ARM-compliance
3 // ARM 9.4 ``There cannot be a static and a nonstatic member function
4 // with the same name and the same argument types.''
6 // The trick is to make sure it's caught with both orders (static,
7 // then normal, and vice-versa.
11 int foo(); // { dg-message "previous" }
12 static int foo(); // error: redeclaration// { dg-error "overloaded" } .*
17 static int foo(); // { dg-message "previous" }
18 int foo(); // error: redeclaration// { dg-error "overloaded" } .*