fork(4) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <size_t N>
  5. struct S
  6. {
  7. union A
  8. {
  9. int arr1[N];
  10. char arr2[sizeof(arr1)];
  11. };
  12. };
  13.  
  14. int main() {
  15. S<10> s;
  16. return 0;
  17. }
Success #stdin #stdout 0s 3136KB
stdin
Standard input is empty
stdout
Standard output is empty