1 // { dg-do assemble } 2 // GROUPS passed static-mem 3 4 class desc; 5 6 class a_desc { 7 public: 8 9 static desc the_desc; 10 11 virtual desc *get_desc(); 12 }; 13 14 class desc : public a_desc { 15 public: 16 17 static desc the_desc; 18 19 desc(int); 20 21 desc *get_desc(); 22 }; 23 24 25 desc desc::the_desc(1); 26 27 desc a_desc::the_desc(0); 28