fork download
  1. #include <iostream>
  2. struct Foo {
  3. enum FOO {A, B};
  4. FOO getFoo() { return B; }
  5. };
  6.  
  7. void printAnInt (int i)
  8. {
  9. std::cout << i << '\n';
  10. }
  11.  
  12. int main() {
  13. Foo f;
  14. if ( 1 == f.getFoo() ) std::cout << "1\n";
  15. printAnInt(f.getFoo());
  16. }
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
1
1