File indexing completed on 2026-04-09 07:48:54
0001
0002
0003 #include <cstring>
0004 #include <iostream>
0005 #include "scuda.h"
0006 #include "Quad.h"
0007
0008
0009 struct Test
0010 {
0011 union { quad q0 ; char label[16] ; } ;
0012 quad q1 ;
0013 };
0014
0015
0016 int main()
0017 {
0018 Test a ;
0019 std::cout << " sizeof(a.label) " << sizeof(a.label) << std::endl ;
0020
0021 const char* label = "hell hell" ;
0022 strncpy(a.label, label, sizeof(a.label) );
0023
0024 std::cout
0025 << " a.q0.u.x " << a.q0.u.x
0026 << " a.q0.u.y " << a.q0.u.y
0027 << " a.q0.u.z " << a.q0.u.z
0028 << " a.q0.u.w " << a.q0.u.w
0029 << std::endl
0030 ;
0031
0032 return 0 ;
0033 }
0034