fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct foo {
  5. string bar;
  6. }
  7. A{"A"},
  8. B{"B"};
  9.  
  10. int main() {
  11. cout << A.bar << " " << B.bar << endl;
  12. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
A B