3 // { dg-options -std=c++98 }
26 } ok5_var; // no complaints
31 } static ok6_var; // no complaints
38 } const ok7_var; // no complaints
43 } extern ok8_var; // no complaints
47 class OK9sub { int a; } mutable ok9sub; // no complaints
54 struct OK10 { int a; } auto ok10 = { 0 }; // no complaints
69 const &ok12_var = *(new OK12());
104 } // { dg-error "after struct definition" }
111 } // { dg-error "after struct definition" }
118 } // { dg-error "after struct definition" }
120 volatile long l0 = 1;
125 } // { dg-error "after struct definition" }
132 } // { dg-error "after struct definition" }
139 } // { dg-error "after struct definition" }
146 } // { dg-error "after class definition" }
153 } // { dg-error "after class definition" }
163 } // { dg-error "after class definition" }
173 } // { dg-error "after class definition" }
175 extern class D0 &f0 (void);
180 } // { dg-error "after class definition" }
182 const struct E6 *f1 (void) { return 0; }
192 } // { dg-error "after class definition" }
194 const union U0 *f2 (void) { return 0; }
203 } // { dg-error "after class definition" }
205 static enum e f3 (void) { return U; }
211 } // { dg-error "after union definition" }
219 } // { dg-error "after union definition" }
225 class sub0 { int a; } // { dg-error "after class definition" }
226 virtual int f2 (void);
227 } // { dg-error "after class definition" }
231 class sub0 { int a; } // { dg-error "after class definition" }
233 } // { dg-error "after class definition" }
238 } // { dg-error "after class definition" }
242 /* This was the original test from the PR. */
248 } // { dg-error "after class definition" }
250 const int foo(const C0 &x)