fork(2) download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. void f(const std::string& x) { std::cout << x << '\n'; }
  5. std::string g() { return "<tag>"; }
  6.  
  7. int main()
  8. {
  9. f(g() += "</tag>");
  10. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
<tag></tag>