fork download
  1. class Base {};
  2.  
  3. class Derived : public Base { int somedata; };
  4.  
  5. int main()
  6. {
  7. Base array[2] = { Derived(), Base() } ;
  8. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty