1 // { dg-do assemble } 2 // GROUPS passed enums 3 // enum file 4 // From: frode@auticon.no 5 // Date: Wed, 13 Jan 93 9:24:50 PST 6 // Subject: enum trouble 7 // Message-ID: <"nac.no.001:13.00.93.18.40.52"@nac.no> 8 9 typedef enum{on, off} TOGGLE; 10 11 class field { 12 private: 13 TOGGLE toggle; 14 public: on(void)15 virtual void on(void) { toggle = 3; };// { dg-error "" } .* off(void)16 virtual void off(void) { toggle = on; };// { dg-error "" } .* 17 }; 18 main()19int main() 20 { 21 } 22