targetB.cpp 106 B

12345678910
  1. #include "depD.h"
  2. int main(int, char**)
  3. {
  4. DepD d;
  5. DepA a = d.getA();
  6. return d.foo() + a.foo();
  7. }