fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3.  
  4. struct Foo {
  5. Foo() {
  6. hello * world;
  7. std::cout << typeid(hello).name() << " " << typeid(world).name() << std::endl;
  8. }
  9. typedef int hello;
  10. int world;
  11. };
  12.  
  13. struct Bar {
  14. Bar() {
  15. hello * world;
  16. std::cout << typeid(hello).name() << " " << typeid(world).name() << std::endl;
  17. }
  18. int hello;
  19. int world;
  20. };
  21.  
  22. int main() {
  23. Foo foo;
  24. Bar bar;
  25. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
i Pi
i i