1 // This is a class that, when #included in a .cc file will generate a 2 // dwarf representation that is declaration-only class because the all 3 // of the methods of the class are inline virtual methods but one. 4 // And the one virtual method that is not inline is not defined. So 5 // the .cc file that is going to define that method is going to see 6 // the class as being defined, and that file will also have the 7 // definition of the vtable. 8 class non_defined_class 9 { 10 public: non_defined_class()11 non_defined_class(){}; ~non_defined_class()12 virtual ~non_defined_class(){} virtual_func_inserted()13 virtual int virtual_func_inserted(){return 0;}; 14 virtual int virtual_func1(); virtual_func0()15 virtual int virtual_func0(){return 0;} 16 }; 17 18 int private_function(non_defined_class *); 19