File: test.cc

package info (click to toggle)
libgnatcoll 1.7gpl2015-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,280 kB
  • ctags: 1,124
  • sloc: ada: 134,072; python: 4,017; cpp: 1,397; ansic: 1,234; makefile: 368; sh: 152; xml: 31; sql: 6
file content (24 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
union U1 {
   int i;
   long j;
   char c[256];
};

typedef U1 UU;

union U1 u_a;
UU       u_b;

template <class T>
union U2 {
    UU    x;
    T     y;
    int   (*z[10])(const int&);
};

int main()
{
    U1 u1;
    UU u2;
    u1 = (U1) u2;
}