3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 27 Sep 1999 <nathan@acm.org>
10 friend explicit int j(); // ERROR - only ctor decls can be explicit
11 friend explicit B::B (); // ERROR - only ctor decls can be explicit
12 int f(const); // ERROR - ansi forbids no type
13 const k; // ERROR - ansi forbids no type
14 mutable friend int j1 (); // ERROR - non-member cannot be mutable
15 mutable typedef int d; // ERROR - non-object cannot be mutable
16 mutable int fn (); // ERROR - non-object cannot be mutable
17 void fn (mutable int); // ERROR - non-member cannot be mutable
18 mutable static int s; // ERROR - static cannot be mutable
19 mutable const int s1; // ERROR - const cannot be mutable
20 mutable const int *s2; // ok
21 mutable int *const s3; // ERROR - const cannot be mutable
24 mutable int g; // ERROR - non-member cannot be mutable
25 explicit A::A () {} // ERROR - only ctor decls can be explicit