* arm.c (FL_WBUF): Define.
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / arm2.C
blob2cfa6b98b0bb9a9bed74113e36385df3ce09d33a
1 // { dg-do assemble  }
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.''
5 //
6 // The trick is to make sure it's caught with both orders (static,
7 // then normal, and vice-versa.
9 class X {
10 public:
11    int foo();
12   static int foo();     // error: redeclaration// { dg-error "" } .*
15 class Y {
16 public:
17    static int foo();
18   int foo();            // error: redeclaration// { dg-error "" } .*