fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct A {};
  5.  
  6. union {
  7. struct: A {
  8. int x;
  9. };
  10. } b;
  11.  
  12. int main() {
  13. b.x = 42;
  14. return 0;
  15. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
Standard output is empty