fork download
  1. #include <string>
  2. #include <iostream>
  3.  
  4. class Test {
  5. public:
  6. void test(const std::string &s) {
  7. std::cout << s << std::endl;
  8. }
  9. };
  10.  
  11. int main() {
  12. ((Test*)0)->test("Test OK");
  13. return 0;
  14. }
Success #stdin #stdout 0.02s 2812KB
stdin
Standard input is empty
stdout
Test OK