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: virtual_func_to_be_removed()11 virtual int virtual_func_to_be_removed(){return 0;} non_defined_class()12 non_defined_class(){}; ~non_defined_class()13 virtual ~non_defined_class(){} virtual_func0()14 virtual int virtual_func0(){return 0;} 15 virtual int virtual_func1(); 16 }; 17 18 int private_function(non_defined_class *); 19